Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php dar echo em um stdClass


<?php
$obj = (object) array('1' => 'foo');
var_dump(isset($obj->{'1'})); // outputs 'bool(true)' as of PHP 7.2.0; 'bool(false)' previously
var_dump(key($obj)); // outputs 'string(1) "1"' as of PHP 7.2.0; 'int(1)' previously
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #dar #echo #em #um #stdClass
ADD COMMENT
Topic
Name
1+3 =