g_p_java Posted June 20, 2010 Share Posted June 20, 2010 Hello i have the following code $out = db_fetch_row($q); $new_array = array(); if($out[1] != NULL) $new_array = explode(" ",$out[1]); #I GET THE ERROR HERE!!! WHY??? else #do nothing I get the following error Parse error, unexpected T_OBJECT_OPERATOR Thanks, in advance! Link to comment https://forums.phpfreaks.com/topic/205318-parse-error-unexpected-t_object_operator/ Share on other sites More sharing options...
kenrbnsn Posted June 20, 2010 Share Posted June 20, 2010 Is there any code before this snippet. The error in your code could actually be a few lines back, but PHP doesn't realize it until the stuff it's parsing doesn't make anymore sense. Ken Link to comment https://forums.phpfreaks.com/topic/205318-parse-error-unexpected-t_object_operator/#findComment-1074624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.