note 110830 deleted from function.preg-split by danbrown
| From: | danbrown@php.net | Date: | Wed, 12 Dec 2012 16:09:18 +0000 |
| Subject: | note 110830 deleted from function.preg-split by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192492@lists.php.net to get a copy of this message | ||
Note Submitter: sirmagid at gmail dot com
----
$tr=preg_split("/[\s]*[,][\s]*/",'freeclup,75,73,74,75,47'));
$arrayid = array_splice($tr,-3);
print_r($arrayid);
output:
Array ( [0] => 74 [1] => 75 [2] => 47 )