我正在使用wordpress会员网站和s2members插件。我用S2Member4在注册表中添加了4个自定义字段,但我想在wordpress和php之外使用该自定义字段
following command work perfectly it give me data also but in one field and I want separate field data 以下是所有示例
PHP commandget\\u user\\u meta($current\\u user->ID,“Tw941I8fXg\\u s2member\\u custom\\u fields”,true);var\\u dump($user\\u info);
Results 字符串(92)“a:3:{s:8:“mobileno”;s:10:“xxxxxxxxx”;s:4:“city”;s:6:“XXXXXXX”;s:8:“cocode”;s:7:“999999999”}”
Need result like$mobileno=“xxxxxxxxx”$城市=“xxxxxxxxx”$cocode=“XXXXXXX”
请注意:我可以在结果中计数和查找contain,但不知道如何在此处获取变量S:10、S:4、S:8命令在所有成员字段中都是相同的