ap88 Posted October 30, 2013 Share Posted October 30, 2013 what does the below piece of code implies? $value1=(isset($_GET['value1']) && $_GET['value1']>0)?$_GET['value1']:20; can someone explain me? Link to comment https://forums.phpfreaks.com/topic/283423-what-does-this-mean/ Share on other sites More sharing options...
requinix Posted October 30, 2013 Share Posted October 30, 2013 isset ternary ?: operator "If the value1 is set in $_GET (ie, the URL) and it has a numeric value above zero then use it, otherwise use 20." Link to comment https://forums.phpfreaks.com/topic/283423-what-does-this-mean/#findComment-1456147 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.