Re: Getting Numerical Index of a Key
| From: | Leif K-Brooks | Date: | Tue, 04 Mar 2003 06:39:04 +0000 |
| Subject: | Re: Getting Numerical Index of a Key | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138038@lists.php.net to get a copy of this message | ||
No, there's no easy way to do this. Just out of curiousity, why do you want to do this anyway?
Matt Honeycutt wrote:
Because I created it with mysql_fetch_array(). I know for a fact that both keys exist, and I can look at the output and tell what text key matches to what numerical key, but I don't want to hardcode it like that. The people that are taking over this code might change something and screw everything up. ---Matt -----Original Message----- From: Leif K-Brooks [mailto:eurleif@buyer-brokerage.com] Sent: Tuesday, March 04, 2003 12:35 AM To: Matt Honeycutt Cc: php-general@lists.php.net Subject: Re: [PHP] Getting Numerical Index of a Key What makes you think it HAS a numerical index? Matt Honeycutt wrote:-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.Is there an easy way to get the numerical index of a text key for an array? I don't see anything in the manual, but before I waste time writing code to find this info, I thought I would double check here. ---Matt