Finding Items in an Array with PHP
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.
- Visit Site:
- Finding Items in an Array with PHP
- Filed in:
-
PHP / Tutorials & Tips / Introduction to PHP
- Platforms:
-




- Databases:
-
- Date Added:
- Dec 28, 2005
- Last Updated:
- Dec 10, 2006
License and Pricing Information
Other
Price: $0.00 USD
| Publisher site visits: | 3,882 |
|---|---|
| Average rating: | 3.22 |
| Total ratings: | 9 |
Publisher Info
- Author:
- Sven Vdhrison
Other listings by this publisher
- Find a visitor's IP Address with ASP
- Your First Java Program
- How to use the QueryString in ASP
- How to Find the Current URL with ASP
- How to write text on a dynamically generated image
- Write text on an existing PNG image in PHP
- Generate a Month Calendar in PHP
- How to use the query string in PHP
- Use PHP on pages without a .php extension
- Find a visitor's IP Address with PHP
- How to Find the Current URL with PHP
- Image rotation with PHP
- Temperature Conversion in Java
- The Difference Between require() and include()
