[ create a new paste ] login | about

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

PHP, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
<?php

function myfunc( array $array ) {
    print_r($array);
}


myfunc(array("random"));
myfunc("random");


Output:
1
2
3
4
5
6
Array
(
    [0] => random
)

Catchable fatal error: Argument 1 passed to myfunc() must be an array, string given, called in /t.php on line 9 and defined on line 3


Create a new paste based on this one


Comments: