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 /> Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.