[PHP] abreviating echo commands
Hello.. I forget where but I found some source awhile back that abbreviated echo. It was something like ?=$var;? which worked the same as ? echo $var; ?. Maybe it was ?\=$var;?.. Obviously I dont remember.. which is why I am asking.. :) Does anyone have a link to something that talks about how to abbreviate commands in PHP? Well.. not how to.. but just a list of abbreviations? Is echo the only one that has an abbreviation? I couldn't find anything in the manual.. any leads? Thanks, Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] abreviating echo commands
Hi, Kris Yates [EMAIL PROTECTED] wrote: Hello.. I forget where but I found some source awhile back that abbreviated echo. It was something like ?=$var;? which worked the same as ? echo $var; ?. Maybe it was ?\=$var;?.. Obviously I dont remember.. which is why I am asking.. :) Does anyone have a link to something that talks about how to abbreviate commands in PHP? Well.. not how to.. but just a list of abbreviations? Is echo the only one that has an abbreviation? I couldn't find anything in the manual.. any leads? Ternary conditional operator: http://www.php.net/manual/en/language.expressions.php echo()'s shortcut syntax: http://www.php.net/manual/en/function.echo.php The only two that I know of... I think. - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] abreviating echo commands
: Kris Yates [EMAIL PROTECTED] wrote: : : I forget where but I found some source awhile back that abbreviated : echo. It was something like : ?=$var;? which worked the same as ? echo $var; ?. Maybe it was : ?\=$var;?.. Obviously I dont remember.. which is why I am asking.. : :) Does anyone have a link to something that talks about how to : abbreviate commands in PHP? Is this what you meant? http://www.php.net/manual/en/language.basic-syntax.php#language.basic-syntax.phpmode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php