$memberDetails = new MemberSearch();
我想将对象$ memberDetails转换为数组。任何帮助,将不胜感激。提前致谢
答案 0 :(得分:1)
您可以使用数组助手
$memberDetails = new MemberSearch();
$dataProvider = $memberDetails->search(Yii::$app->request->queryParams);
$myArray= $dataProvider->all()->asArray();
或者对于查询,您可以将结果转换为数组
Webhook call failed. Error: Webhooks can be used with version '20150415' or greater.