onedumbcoder Posted July 29, 2009 Share Posted July 29, 2009 i have a function that returns either an array or nothing. so lets say it returns an array $list = getList(); then would $list no longer be empty? !empty($list) == true or would it still be empty and would I need to do this instead !empty($list[0]) == true what if it does not return anything: getList(){ return; } would list not be set so that this would be false: isset($list) Quote Link to comment 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.