Hi. Some code I'm currently writing is making use of a complicated conditional, and it's giving me errors, but I can't figure out why.
Data
PHP Code:
$lines = Array ( [raw] => Array (
[0] => "11 Chimney Imp"
[1] => "2 Island"
[2] => "2 Canz \'o Spam" )
The Conditional
PHP Code:
if (substr($lines[raw][$j], strlen(intval($lines[raw][$j]),1) == " ")
Parse error: parse error, unexpected '{' in <FILE> on line 24 (The next line of code)
If I try to typecast intval to (string), I get an error as well.
Parse error: parse error, unexpected T_STRING in <FILE> on line 23
What am I doing wrong? =?
|