PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Well all you need in a conditional is something that returns a boolean. in_array() checks if a given value is in another set of values, and returns true if so, false otherwise.
josh wrote:Well all you need in a conditional is something that returns a boolean. in_array() checks if a given value is in another set of values, and returns true if so, false otherwise.
Magic -- I knew someone would have a quick way of doing it!