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