note 47879 deleted from function.strpos by levim

From: Date: Fri, 06 Dec 2013 16:33:07 +0000
Subject: note 47879 deleted from function.strpos by levim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197811@lists.php.net to get a copy of this message
Note Submitter: takapz at flor dot it ---- here a little function for tag parsing <?php function parsing($tag,$string) { $start=strpos($string,"<" . $tag . ">" ); $start=$start + strlen("<" . $tag . ">"); $end=(strpos($string, "</" . $tag . ">")); $num= ($end - $start); $valore=substr($string,$start,$num); return $valore; } ?>

« previous php.notes (#197811) next »