I want to verify if a variable $userid is in array $user.
If the $userid is in the $user array, I want to load an xml file for that $userid.
How is this possible?
I have been searching for an example to do this, but can't seem to find one.
I want to verify if a variable $userid is in array $user.
If the $userid is in the $user array, I want to load an xml file for that $userid.
How is this possible?
I have been searching for an example to do this, but can't seem to find one.
in_array() ?
If you Google "find value in array" you will find lots of examples.
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
Bookmarks