Source Code:
(back to article)
<?php class MyClass { public $var1 = "hello"; } $var1 = new MyClass(); $var2 = "hello"; echo is_object($var1) . "\n"; // output: 1 (true) echo is_object($var2) . "\n"; // output: (false) ?>
Result:
Report an issue