have a look at eval() Paul Roberts [EMAIL PROTECTED] ++++++++++++++++++++++++ From: "Lauri Vain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 11:44 AM Subject: [PHP] multiple replaces...
Hello there, I have about 30 markers in the text which need to be replaced with the value of a variable or an array. Common sense comes up with eregi_replace("!one!","blah",eregi_replace("!heh!",'foobar',eregi_replace("b lah","ho-ho-ho",text))); The list above could go on and on... I'm sure there are better ways to replace many markers or spans of text with something else. A loop? Something even more easier and better? Thanks, Lauri -- Tharapita Creations [dynamic web applications] [EMAIL PROTECTED] Mobile: +372 53 410 610 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]