public static function hasPrefix($sNeedle, $sHaystack) { return (string) $sNeedle === substr($sHaystack, 0, strlen((string) $sNeedle)); }