Contact: aviboots(AT)netvision.net.il
39,888 questions
51,815 answers
573 users
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; echo "<pre>"; print_r($o); echo "</pre>"; /* run: stdClass Object ( [value] => PHP Programming [test] => 100 ) */
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; echo '<pre>' . print_r($o, true) . '</pre>'; /* run: stdClass Object ( [value] => PHP Programming [test] => 100 ) */
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; header('Content-Type: text/plain; charset=utf-8'); print_r($o); /* run: stdClass Object ( [value] => PHP Programming [test] => 100 ) */
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; var_dump($o); /* run: object(stdClass)#1 (2) { ["value"]=> string(15) "PHP Programming" ["test"]=> int(100) } */
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; var_export($o); /* run: stdClass::__set_state(array( 'value' => 'PHP Programming', 'test' => 100, )) */
$o = new stdClass(); $o->value = 'PHP Programming'; $o->test = 100; echo var_export($o, true); /* run: stdClass::__set_state(array( 'value' => 'PHP Programming', 'test' => 100, )) */