RE: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread John Coggeshall
In order for such a feature to exist the your statement would have to be (ignoring the ++ operator for now): $foo = The count is: {$count = $count + 1}; Which means that you'd actually have to evaluate everything inside of { } as PHP code.. Although the language should be able to accomidate

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Federico Giannici
I really cannot understand where is the danger of executing a system call! What is the difference between these two cases: 1) Evaluate an expression, assign it to a temporary variable and then print it into an heredoc string. 2) Evaluate the expression directly INSIDE the heredoc string.

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Leon Atkinson
print END table trtdName:/tdtd{$= text2html($data['name']) }/td/tr trtdAddress:/tdtdinput type=text value={$= htmlspecialchars($data['address']) }/td/tr /table END; Federico, you can always do this: ? table trtdName:/tdtd?= text2html($data['name']) ?/td/tr trtdAddress:/tdtdinput type=text

Re: [PHP-DEV] Generic expressions interpolation in strings

2003-01-06 Thread Andrey Hristov
- Original Message - From: Leon Atkinson [EMAIL PROTECTED] To: Federico Giannici [EMAIL PROTECTED]; John Coggeshall [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 7:09 PM Subject: Re: [PHP-DEV] Generic expressions interpolation in strings print END table