Jump to content

How to check the type of a variable's value?


gwolgamott

Recommended Posts

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}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.