Re: string evaluation
| From: | Chris Lee | Date: | Thu, 16 Nov 2000 07:37:52 +0000 |
| Subject: | Re: string evaluation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25822@lists.php.net to get a copy of this message | ||
Not quite as you would like i sure of it.
<?
$animal_type = "dog";
$new_string[] = "This is a ";
$new_string[] = &$animal_type;
echo implode('', $new_string);
$animal_type = "cat";
echo implode('', $new_string);
?>
Chris Lee
Mediawaveonline.com
In article <8v1qj9$i07$1@toye.p.sourceforge.net>, norphanhead@norphans.com
wrote:
> is there a way to make a string containing another string, but not have
> the inner string evaluated right away?
>
>
> $new_string = "Once there was a $animal_type";
>
> This was I can pass $new_string around and have it evaluate when I want
> ot to evaluate?
>
> Thanks
>
>
>
>