11 function whatis($name){ 12 $checktype = explode('|', $name); 13 $checkfile = explode('.', $name); 14 if(count($checktype) >=2 && $checktype[1] == 'Category') 15 return 'Category'; 16 elseif(count($checktype) >=2 && $checktype[1] == 'Subcategory') 17 return 'Subcategory'; 18 elseif(count($checkfile) <= 3) 19 return 'File'; 20 else 21 return 'Undesirable'; 22 }I wrote the line number before each line... This error starts at line 14, but even if I remove everything in the if statement after >=2, line 15 errors:
Parse error: parse error, unexpected T_STRING in /my/website/foo/bar/script.php on line 14
I feel like something's really stupid in my code, but I'm just too tired to find it...