If I can venture a comment, what you think "clutters" the code others
may find a quick and easy way to identify a variable in it.

Just a thought.


Marco
-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers

Come visit us at http://www.phparch.com!
--- Begin Message ---
In an earlier message, Jason Wong [mailto:php-general@;gremlins.com.hk] said
...

> Yup. So you can have:

>   print "I'm a $variable";

> instead of the messy javascript way:

>   alert("I'm a " . $variable);

But the language could still support variable evaluation within strings
without requiring the '$' to always appear in front of a variable name.

So, a '$' within a string would mean "treat the following identifier as a
variable to be evaluated".  I believe that this introduces no
inconsistencies & removes the ugly $s that litter PHP programs.

--
JR



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


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

Reply via email to