How to create php stdclass storing data object instead ?

php stdclass storing data object instead click below... $data["list"] = array("0"=> (object) array("category_name"=>$catName));
Ankur Rajput
Asked 12-11-2019
43

Answer (1)
You can write something like that... $data['list'] = (object) array( "0" => (object) array( "category_name"=>"category_name") );
Harsh Aggrawal
Asked 29-06-2018
45 Likes
Comments
Write comment

Submit your answer