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? Quote 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." Quote Link to comment https://forums.phpfreaks.com/topic/283423-what-does-this-mean/#findComment-1456147 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.