[ create a new paste ] login | about

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

PHP, pasted on Feb 9:
1
2
3
4
5
6
7
<?php
error_reporting(E_ALL|E_STRICT);
$a = new stdClass();
$a->str = '';
var_dump((int)'a');
var_dump($a->str['a']);
var_dump($a->str[0]);


Output:
1
2
3
4
5
6
7
int(0)

Notice: Uninitialized string offset:  0 in /t.php on line 6
string(0) ""

Notice: Uninitialized string offset:  0 in /t.php on line 7
string(0) ""


Create a new paste based on this one


Comments: