mattd8752 Posted March 10, 2007 Share Posted March 10, 2007 How would I go about searching all of the values in an array. I am making a custom encryption method. Lets use the idea where a is 100, b is 200. Once my script has figured out the number, it will have to search an array $letter. I want to search the values of $letter for 100 for example. How would I do this. Basically, I would want the script to return a from the search of 100. Any ideas for how to do this without using if $letter[a] == and etc all of the way. Link to comment https://forums.phpfreaks.com/topic/42164-searching-the-values-in-an-array/ Share on other sites More sharing options...
mattd8752 Posted March 10, 2007 Author Share Posted March 10, 2007 Wow, I couldn't find that for a while. I just saw it. If anyone wants to do this, use array_flip. Link to comment https://forums.phpfreaks.com/topic/42164-searching-the-values-in-an-array/#findComment-204556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.