> Can one use <?php ?> within the heredoc syntax or is there
> another way?? I'm trying to dynamically generate email from
> generic text but with obvious additions, like this:

http://us4.php.net/types.string says that heredoc acts just like double
quoted, which would mean it expands variables, so I would try just throwing
them in there like this...


 $message = <<<my_message
 Name: {$lot->get_name()}

 Lot {$lot->get_id()} has been approved. Here is the
 link to the lot:
 my_message;


There's an example of almost exactly like this on that page.







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

Reply via email to