PHP: substr - Manual - PHP: Hypertext Preprocessor
substr() exhibits rather unexpected behavior with respect to when it returns "" and when it returns FALSE. Specifically, the following appears to hold (tested on PHP 5.4.19): * if $string is "", it always returns FALSE * if ($start >= 0) and ($start >= st...