摘要: 在WordPress中很多地方使用stdClass来定义一个对象(而通常是用数组的方式),然后使用get_object_vars来把定义的对象『转换』成数组。 如下代码所示: 1 2 3 4 5 6 $tanteng = new stdClass(); $tanteng->name = 'tante 阅读全文
posted @ 2019-04-03 00:36 brady-wang 阅读(1161) 评论(0) 推荐(0)