Answers for "new stdclass() php 7"

PHP
1

php stdclass

//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
3

make a object php

$object = new stdClass();
   $object->property = 'Here we go';

   var_dump($object);
   /*
   outputs:

   object(stdClass)#2 (1) {
      ["property"]=>
      string(10) "Here we go"
    }
   */
Posted by: Guest on May-04-2020
0

php new stdClass object

new stdClass()
Posted by: Guest on May-25-2020

Browse Popular Code Answers by Language