note 55260 rejected from function.preg-split by betz

From: Date: Thu, 28 Jul 2005 20:12:28 +0000
Subject: note 55260 rejected from function.preg-split by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92673@lists.php.net to get a copy of this message
Note Submitter: jbelon at agenciaq4 dot com ---- I have a big string with various _______________________ <dt> <a href="...">TEXT</a> <small>(TEXT)</small></dt> <dd><small>DATE, HOUR</small></dd> <dd><small> DESCRIPTION. </small><p></dd> _______________________ I need to split this big string to another array with components from sections: <dt>...<p></dd> * array[0]: i try with preg_split: <?php /* In m[] I have the array with various ________________________________ <dt> <a href="...">TEXT</a> <small>(TEXT)</small></dt> <dd><small>DATE, HOUR</small></dd> <dd><small> DESCRIPTION. </small><p></dd> ________________________________ */ function Extract_Data ($m[], $maxlength) { for ($i=0; $i<$maxlength; $i++){ echo preg_split('(\<dt\>(.*)\<p\>\</dd\>)',$m[$i]); } ?> But it's not working at all...any teacher who teach me?, please :-) thanks!

« previous php.notes (#92673) next »