Yohanne Posted July 12, 2013 Share Posted July 12, 2013 Hi coders, how to create function that the value is empty or null.? someting like below. function act(empty) { return true; } Quote Link to comment https://forums.phpfreaks.com/topic/280094-create-function-value-empty/ Share on other sites More sharing options...
Irate Posted July 12, 2013 Share Posted July 12, 2013 return false; or return null; Simple, no? Quote Link to comment https://forums.phpfreaks.com/topic/280094-create-function-value-empty/#findComment-1440437 Share on other sites More sharing options...
AbraCadaver Posted July 12, 2013 Share Posted July 12, 2013 (edited) function act($arg1=null) { } Edited July 12, 2013 by AbraCadaver Quote Link to comment https://forums.phpfreaks.com/topic/280094-create-function-value-empty/#findComment-1440443 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.