Jump to content

Searching the VALUES in an array


mattd8752

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.