[ create a new paste ] login | about

Link: http://codepad.org/klRg6l4p    [ raw code | output | fork ]

PHP, pasted on May 28:
1
2
3
4
5
6
7
<?php

$foo = array();

$foo = (object)$foo;

var_dump($foo);


Output:
1
2
object(stdClass)#1 (0) {
}


Create a new paste based on this one


Comments: