Answers for "php create object without clas"

PHP
1

php create object without clas

//create a person object in PHP
$person=new stdClass();
$person->firstName="Chuck";
$person->lastName="Bartowski";
$person->age=27;

print_r($person);
Posted by: Guest on August-06-2019

Browse Popular Code Answers by Language