Type hinting
function foo(string $s) {}
foo("hello world");
// PHP Catchable fatal error:
Argument 1 passed to foo()
must be an instance of
string, string given
Slide 11
Slide 11 text
empty()
“ A variable is considered empty if it
does not exist or if its value equals
FALSE”
$var = "";
empty($var);
// true, because "" == false
Slide 12
Slide 12 text
parse_str()
parse_str("first=one&second=two");
echo $first; // one
echo $second; // two