Xu Wei Jie Posted March 13, 2009 Share Posted March 13, 2009 How to do it? Are there any available functions? Quote Link to comment https://forums.phpfreaks.com/topic/149230-identify-that-an-argument-passed-in-isnt-an-array/ Share on other sites More sharing options...
JonnoTheDev Posted March 13, 2009 Share Posted March 13, 2009 if(!is_array($val)) { print "not array"; } else { print "is array"; } Quote Link to comment https://forums.phpfreaks.com/topic/149230-identify-that-an-argument-passed-in-isnt-an-array/#findComment-783662 Share on other sites More sharing options...
kenrbnsn Posted March 13, 2009 Share Posted March 13, 2009 Look at the function is_array Ken Quote Link to comment https://forums.phpfreaks.com/topic/149230-identify-that-an-argument-passed-in-isnt-an-array/#findComment-783663 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.