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 17-11-2024
167

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