Finding Items in an Array with PHP

Category: Other - Tutorials & Articles

This elementary tutorial describes how to search an array to see if a specific item lies in it. In the tutorial, we create an array of strings such as "Apple" and "Orange" then show you how to use PHP to find out that "Apple" is in the array but "Monkey" is not. This can be useful in PHP programs if you have a collection of items (perhaps that a user has entered) and you want to know if a certain item is in that collection. Date: 26 August, 2011


Developer: Sven Vdhrison

License: Freeware

Operating System: linux, windows, freebsd, osx, sun

Add a Comment

all are required fields

What do you think of this resource?

Select Your Rate: