我有两个序列化数据,一个有 notification_color,一个没有,如果序列化字符串没有 notification_color 索引,我想检查 mysql 数据而不是添加
第一的 :-
a:4:{s:11:"header_dark";s:7:"#2185C5";s:12:"header_light";s:7:"#7ecefd";s:10:"text_color";s:7:"#ffffff";s:9:"text_dark";s:7:"#000000";}
第二:-
a:5:{s:11:"header_dark";s:7:"#333E4B";s:12:"header_light";s:7:"#f05a28";s:10:"text_color";s:7:"#ffffff";s:9:"text_dark";s:7:"#ffffff";s:18:"notification_color";s:7:"#ff0000";}