co.ador Posted January 8, 2010 Share Posted January 8, 2010 <?php function checkSet(){ return isset($strName = $_POST['name'], $strZipCode = $_POST['zipcode'], $strState = $_POST['state'], // line 9 $arrFoodTypes = $_POST['frmSearch']['food_types'], $arrOfferings = $_POST['frmSearch']['offerings']); } ?> <b>Parse error</b>: parse error, expecting `','' or `')'' in <b>C:\wamp\www\stores\includes\functions.php</b> on line <b>9</b><br /> Link to comment https://forums.phpfreaks.com/topic/187718-there-is-a-parse-error-and-i-cant-figure-it-out-help/ Share on other sites More sharing options...
Mchl Posted January 8, 2010 Share Posted January 8, 2010 You can not do assignments here. Link to comment https://forums.phpfreaks.com/topic/187718-there-is-a-parse-error-and-i-cant-figure-it-out-help/#findComment-991027 Share on other sites More sharing options...
Adam Posted January 8, 2010 Share Posted January 8, 2010 You can't use isset like that, check the manual for proper usage. Link to comment https://forums.phpfreaks.com/topic/187718-there-is-a-parse-error-and-i-cant-figure-it-out-help/#findComment-991028 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.