Posts Tagged by in_array

PHP Tutorial: Is That Value In That Array?

I'm an array junkie. It is my go to data structure. At its simplest, an array is a variable that holds other variables. A basic array indexes the variables with a number. Here's a quick scriptlet that creates and prints out an array: $array = array("fred","barney","wilma","betty"); echo print_r($array,true); That's going to output something like this:…