peter11 Posted August 11, 2010 Share Posted August 11, 2010 hi all, Is this line right? Im trying to say if the cookie has not been created create it and set as default value = 0 however i dont think this is right: $points = $_COOKIE["points"] ? $_COOKIE['points']:0; thanks, Link to comment https://forums.phpfreaks.com/topic/210430-whats-wrong-with-this-line/ Share on other sites More sharing options...
trq Posted August 11, 2010 Share Posted August 11, 2010 $points = isset($_COOKIE["points"]) ? $_COOKIE['points']:0; Link to comment https://forums.phpfreaks.com/topic/210430-whats-wrong-with-this-line/#findComment-1098023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.