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"; Quote 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; Quote 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; } Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/71490-quotes-or-no-quotes/#findComment-359932 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.