Re: Associative to Numeric
| From: | Greg Beaver | Date: | Mon, 11 Aug 2003 17:27:39 +0000 |
| Subject: | Re: Associative to Numeric | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159156@lists.php.net to get a copy of this message | ||
$num = array_values($assoc);
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Gerard Samuel wrote:
What would be the quickest, most reliable means to convert an associative array to a numeric array. Running an implode()/explode() combination comes to mind, but reliablity can be questioned when it comes to deciding a delimiter, since, the data can possibly contain any character. Any suggestions are welcome. Thanks