Re: PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found
| From: | André Langhorst | Date: | Mon, 19 Feb 2001 18:22:07 +0000 |
| Subject: | Re: PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-46941@lists.php.net to get a copy of this message | ||
Could be done. The way I'd do it is have one php_in_array() C function that gets parameters passed through from in_array() and array_find() as well as a flag indicating whether to just return true/false or the actual key.what about not touching the internal pointer? there in_array would finally get a fourth parameter, not? andré -- · André Langhorst t: +49 331 5811560 · · andre@php.net m: +49 173 9558736 · * PHP Quality Assurance http://qa.php.net *