starmsa Posted December 24, 2009 Share Posted December 24, 2009 I am a nube when it comes to PHP and I am getting this error and do not know how to get around it: Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/courseChoice.php on line 7. My code is attached. Thanks for any help you can give [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/186285-parse-error-syntax-error-unexpected-t_string-in-applicationsmamphtdocscour/ Share on other sites More sharing options...
ram4nd Posted December 24, 2009 Share Posted December 24, 2009 I think you have to use = not => to put it in variable. $students = array ( 256 => array ('name' =>'Jon', 'grade' => 98.5), 2 => array ('name' => 'Vance', 'grade' => 85.1), 9 => array ('name' => 'Stephen', 'grade' => 94.0), 364 => array ('name' => 'Steve', 'grade' => 85.1), 68 => array ('name' => 'Rob', 'grade' => 74.6) ); Link to comment https://forums.phpfreaks.com/topic/186285-parse-error-syntax-error-unexpected-t_string-in-applicationsmamphtdocscour/#findComment-983801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.