 |
Categories |
|
 |
 |
| Finding Items in an Array with PHP
|
Hits: 2748
|
|
Description: 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.
|
| Resource Specification |
| Platform(s): |
linux, windows, freebsd, osx, sun |
| Date Added: |
Dec 28, 2005 |
| Last Updated: |
Dec 10, 2006 |
| Author: |
Sven Vdhrison |
| License Information |
|
License # 1: |
| |
License Type: |
Other Free / Open Source License
|
Price:
| Free |
Average Visitor Rating:
3.25 (out of 5)
Number of Ratings: 8 Votes |
| Visitor ratings breakdown by period |
| Last 7 Days |
0 |
0 |
0 |
0 |
0 |
0.00 |
| Last Month |
0 |
0 |
0 |
0 |
0 |
0.00 |
| Last Year |
3 |
0 |
0 |
0 |
3 |
3.00 |
| Overall |
3 |
0 |
0 |
2 |
3 |
3.25 |
| |
1 |
2 |
3 |
4 |
5 |
AVG |
|
|
|
| Visitor Rating Totals |
|
|
|
|
|
| 1 |
2 |
3 |
4 |
5 |
|
|
|
|
|
| Other Links by This Member |
|
|
|
|