Re: array key starting with digit ending with string

From: Date: Thu, 27 May 2004 19:19:51 +0000
Subject: Re: array key starting with digit ending with string
Groups: php.general 
Request: Send a blank email to php-general+get-187078@lists.php.net to get a copy of this message
[snip] not sure I follow 100% but you could use a regular expression to detemine if it starts with a string. if (preg_match('/^\d/',$array_key)) { //do something } [/snip] I mean starts with a digit, sorry for 2 emails. I should proofread.

« previous php.general (#187078) next »