Breadcrumbs
Tag: "arrays"
-
Useful Function: Multiple-dimension Array Search
- Author
- Date
- Thu 31 Jan 2008 at 19:16
- Type
- Blog Entry
- Comments
- 7 comments
Awhile back I found that I really needed a way to search through multi-dimensional arrays. PHP has the in_array() function built-in to the language, but I needed a similar function that would search through an array with more than one dimension. I use the following function in_array_multiple() to get this job done and it works perfectly. It is a very simple function, but it does exactly what it needs to: <?php /** * Multiple-dimensional array search * * @param string $needle Value searching for * @param array $haystack Array…
-
Too Easy JavaScript - Arrays and Switch [4]
- Author
- Date
- Sat 16 Jul 2005 at 6:56
- Type
- Article
Expand your JavaScript horizon with arrays and switch statements. Organize your code using arrays and replace nested conditional statements with switch statements. Continue your journey in Too Easy JavaScript, Part 4.
-
PHP Arrays
- Author
- Date
- Sun 30 Jan 2005 at 6:39
- Type
- Article
Arrays help to keep related data neatly organised. Learn how to harness the power of arrays in PHP.
