Re: executeing another files code
| From: | Raditha Dissanayake | Date: | Sun, 05 Dec 2004 01:05:36 +0000 |
| Subject: | Re: executeing another files code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203506@lists.php.net to get a copy of this message | ||
Ryan A wrote:
Hi again, One last question as am a bit confused, using this method: $s = str_replace( array('$firstname', '$lastname', '$sitename', '$message'), array($firstname, $lastname, $sitename, $message),$s); do I *have to* pass 4 arguements? you can set default values (eg an empty string) to cover that scenario. I can aslo offer you a third alternative to the very good suggestions already offereed by Marek and Sokolewicz; printf();-- Raditha Dissanayake. ------------------------------------------------------------------ http://www.radinks.com/print/card-designer/ | Card Designer Applet http://www.radinks.com/upload/ | Drag and Drop Upload