gwolgamott Posted January 28, 2010 Share Posted January 28, 2010 Hopefully quick question. I'm using variables that sometimes are arrays too if collection. What I want to know is there a fucntion that checks the value to see whether it is or not a an array? For example here's my sudo code $bob = $input; // INPUT is either a string or a set of strings if($bob == to an array of strings) {Call function to collect data} else {do something else and break} Quote Link to comment https://forums.phpfreaks.com/topic/190127-how-to-check-the-type-of-a-variables-value/ Share on other sites More sharing options...
premiso Posted January 28, 2010 Share Posted January 28, 2010 is_array checks a value to see if it is an array or not. Quote Link to comment https://forums.phpfreaks.com/topic/190127-how-to-check-the-type-of-a-variables-value/#findComment-1003148 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.