retrieve a value from an array and find its position in that array
Hey,
Probably really simple but I can't find any information. I have a value which is stored in an array, but I want to find out it's position in the array and then use this new number. Example: PHP Code:
|
Re: retrieve a value from an array and find its position in that array
Quote:
PHP Code:
PHP Code:
|
Re: retrieve a value from an array and find its position in that array
sigh, I was going to do this but I thought there must be some function already made
Edit: Whoops. Thanks <3 |
Re: retrieve a value from an array and find its position in that array
PHP Code:
|
Re: retrieve a value from an array and find its position in that array
I made a typo and fixed the function. It should be break and not continue.
|
| All times are GMT -4. The time now is 14:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.