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; } 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? 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 function act($arg1=null) { } Link to comment https://forums.phpfreaks.com/topic/280094-create-function-value-empty/#findComment-1440443 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.