From:             [EMAIL PROTECTED]
Operating system: Debian GNU/Linux
PHP version:      4.2.3
PHP Bug Type:     Feature/Change Request
Bug description:  Easier Heredoc mode

Hello,

First of all, I would like to say (as hundreds of people says to you each
day) that you're all doing a GREAT JOB !

I feel kinda stupid to ask you to consider this feature request, so please
consider this as the only thing PHP should include to make my little
person very very happy :))

Here's the point :
When dealing html which is not mine but generated by a graphist who use
dreamweaver or something, I spent a lot of time (and I think lot of people
too) quoting, cleaning, line breaking html code. This happens for parts of
code which have to be repeated and have to contains output of variables
and functions.

Then I discovered while reading the doc :) that php has perl- like HEREDOC
mode. It sound cool !
I'm using this mode a lot, but when I want to output the result of a
function, i'm forced to go out of the heredoc mode, or set a variable with
the result of the function before using heredoc mode, and I think the code
is getting ugly when doing this.

I think the heredoc mode would be very very cool if it was python like. I
should use something like that.

echo """ Some html lines, $var $var2 
more html
more $vars """ . function_output() . """ more html ...""";

This would be very cool. But php is already very very cool !!

Again, thanks you all for keeping this great job !!

-- 
Edit bug report at http://bugs.php.net/?id=19582&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19582&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19582&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19582&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19582&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19582&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19582&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19582&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19582&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19582&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19582&r=globals

Reply via email to