LUzel25 Posted February 4, 2014 Share Posted February 4, 2014 My question is about this line: return (mysql_result($total, 0) == '1') ? true : false; What does ", 0)" stand for ? Link to comment https://forums.phpfreaks.com/topic/285948-return-1-1-true-false/ Share on other sites More sharing options...
Barand Posted February 4, 2014 Share Posted February 4, 2014 The first field in the row (starting from 0). The true and false are redundant in that statement, you could just return the boolean value return (mysql_result($total, 0) == '1'); Link to comment https://forums.phpfreaks.com/topic/285948-return-1-1-true-false/#findComment-1467763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.