php equiv of perl string "foo @{[function()]} bar"; ?
| From: | Thoenen, Peter Mr. EPS | Date: | Mon, 16 Sep 2002 17:44:53 +0000 |
| Subject: | php equiv of perl string "foo @{[function()]} bar"; ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116550@lists.php.net to get a copy of this message | ||
Anybody know if php has some type of equiv construct or function like
interpolating a function in string in perl. eg: print "foo @{[localtime()]}
bar"; OR print "foo ${|($var+6)} bar";
While it doesn't make much sense in the above context ... sometimes you have
a rather large string block echo "<--50 lines -->" and don't really want to
stop and do a echo "38lines"; funciton(); echo"5 lines"; function();echo"7
lines"; etc etc.
Cheers,
-Peter
##################################
Peter Thoenen - Systems Programmer
Commercial Communications
Camp Bondsteel, Kosovo
##################################
"Stumbled Upon"...heh (Score:5, Funny) /.
by $carab on 23:00 23 August 2002 (#4131637)
"ForensicTec officials said they stumbled upon the military networks about
two months ago, while checking on network security for a private-sector
client."
Someone new to a Dvorak probably tried to type in "lynx
http://www.google.com" but instead got "nmap -v
-p 1-1024 -sS -P0 army.mil
-T paranoid".