[ create a new paste ] login | about

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

PHP, pasted on Apr 22:
1
2
3
4
5
6
7
8
9
10
<?php
$x = new stdclass;
$x->{"42"} = 1337;
$x = (array)$x;
foreach ($x as $key => $value)
{
    if (!array_key_exists($key, $x))
        echo 'lolphp';
}
?>


Output:
1
lolphp


Create a new paste based on this one


Comments: