note 51522 deleted from function.strpos by aidan

From: Date: Sun, 17 Apr 2005 08:42:36 +0000
Subject: note 51522 deleted from function.strpos by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88101@lists.php.net to get a copy of this message
Note Submitter: seo at starmail dot co dot za ---- You know how long it took me to find out how to find a string between two chrs. Well here it is: $start=strpos($string,"$" ); $start=$start + strlen("$"); $end=(strpos($string, "</B>")); $num= ($end - $start); $number=substr($string,$start,$num); string: style="float:right">$62</B> See I wanted to find the number 62 between $ and </B> So that I could times it by 10. For some odd reason when I turn this into a function it does not work.

« previous php.notes (#88101) next »