This is a discussion on Searching for multiple values in an array within the PHP Programming forums, part of the Web Development category; I can't figure out how to do this. I have an array for example: $colors = array("red", &...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I can't figure out how to do this. I have an array for example: $colors = array("red", "green", "blue", "orange", "purple", "yellow"); I have used in_array in the past to do this for a single value but what if I am wanting to check is if red, orange, AND yellow all show up in the array somewhere? How would I do that? Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Searching, Loading XML file help | yoki | XML and SOAP | 1 | 01-05-2009 07:55 PM |
| Searching a huge XML file? | vigneshgets | XML and SOAP | 3 | 09-04-2007 05:04 AM |
| What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ? | Archer | C# Programming | 2 | 08-25-2007 02:00 AM |
| Searching for a ASP.NET hosting. | Ponte_64 | ASP and ASP.NET Programming | 0 | 05-19-2007 07:01 AM |
Our Partners |