Xu Wei Jie Posted March 13, 2009 Share Posted March 13, 2009 How to do it? Are there any available functions? 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"; } 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 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
Archived
This topic is now archived and is closed to further replies.