RE: [PHP-DEV] Just a little question

From: Date: Tue, 19 Nov 2002 10:46:30 +0000
Subject: RE: [PHP-DEV] Just a little question
Groups: php.dev 
Request: Send a blank email to php-dev+get-91319@lists.php.net to get a copy of this message
> -----Original Message----- > From: Hacook [mailto:hacook@free.fr] > Sent: 19 November 2002 09:48 > > I have a chain charachter that look like this : > *text*text*text*text*text....etc > I would like to cut off the FIRST star but not the others > My chain is REALLY long. > I made that script : > > $maxi=strlen($resultats)-2; > $nb = 0; > while ($nb<=$maxi) { > $results2 = $results2.$results[1+$nb]; > $nb = $nb+1; > } > > where $results is the chain > It works perfectly but it takes over 5 minutes ! > Do you have any idea on how to make it faster ? (a) wrong list -- you want php-general@php.lists.net (b) $results2 = substr($results, 1); Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.dev (#91319) next »