monkeybidz Posted October 2, 2007 Share Posted October 2, 2007 I am not getting a false return when i need it. Which one of these is correct? return false; return 'false'; return "false"; Link to comment https://forums.phpfreaks.com/topic/71490-quotes-or-no-quotes/ Share on other sites More sharing options...
darkfreaks Posted October 2, 2007 Share Posted October 2, 2007 return false; Link to comment https://forums.phpfreaks.com/topic/71490-quotes-or-no-quotes/#findComment-359862 Share on other sites More sharing options...
monkeybidz Posted October 2, 2007 Author Share Posted October 2, 2007 Would this be the same for this: if($z == false){ $error = 1; } Link to comment https://forums.phpfreaks.com/topic/71490-quotes-or-no-quotes/#findComment-359864 Share on other sites More sharing options...
phpknight Posted October 2, 2007 Share Posted October 2, 2007 Yes and no. You could do something like that, but then you have to return, too. Link to comment https://forums.phpfreaks.com/topic/71490-quotes-or-no-quotes/#findComment-359932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.