Answers for "how to get values from object of type stdclass"

PHP
0

get value from stdclass object

// Directly
$obj->variable;
  
// Through Array
$array = get_object_vars($obj);
Posted by: Guest on March-11-2021

Code answers related to "how to get values from object of type stdclass"

Browse Popular Code Answers by Language