Answers for "what is php object"

PHP
7

php define object

$x = new stdClass();
Posted by: Guest on February-19-2020
-1

java php object

$a = array('foo' => 'bar');
$o = (object) $a;
var_dump($o instanceof stdClass); // bool(true)
var_dump($o->foo); // string(3) "bar"
Posted by: Guest on May-08-2020

Browse Popular Code Answers by Language