Re: There has to be a more elegant way of doing this

From: Date: Wed, 31 Jul 2002 14:10:46 +0000
Subject: Re: There has to be a more elegant way of doing this
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110514@lists.php.net to get a copy of this message
NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO REPLACE WITH ARRAY/), STRING) "Mike" <funyon@funyon.com> wrote in message news:007201c23891$4fee8400$0dc48ed1@intranet.wwnet.net... > Heya, > I was just wondering If there is a more elegant way of doing this... > > $string = > > str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', > $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep > lace('%artist%',$artist,$format))))) > > Thank You, > Mike > funyon@funyon.com > mmacrae@wwnet.net > >

« previous php.general (#110514) next »