Re: string as file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/9/07, Rick Pasotto <rick@xxxxxxxx> wrote:
> Does php have a facility similar to python's stringIO?
>
> What I'm wanting to do is similar to a mail merge. IOW, I know I can
> create an include file like:
>
> $out = <<<EOT
> This is an example of $var1 and $var2.
> EOT;
>
> and then after assigning values to $var1 and $var2 include that file. I
> can later use different values for $var1 and $var2 and get a different
> $out with a second include.

eval()


-- 
Greg Donald
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux