Posts Tagged by in_array
PHP Tutorial: Is That Value In That Array?
| April 26, 2012 | Posted by Greg Bulmash under PHP |
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:…
Recent Comments