Guilherme Blanco wrote:
@sotiris:
explain me how will does this be handled:
$array_pop = 'foo';
$test = $array_pop($arrayFoo); // $test = foo($arrayFoo);
if you remove the $....
array_pop = 'foo';
test = array_pop(arrayFoo); // huh?!?!?!
Guilherme,
I suggest keeping the $ sign in the syntax scheme of PHP; that is clear
in my prior
responses. Why do you actually ask this? Changing the way variables are
denoted
by stripping the dollar sign obviously breaks previous syntax
functionality offered
by PHP (indirect function calls through variables).
Cheers,
On Sat, Sep 20, 2008 at 2:59 PM, sotiris karavarsamis <[EMAIL PROTECTED]> wrote:
Marco wrote:
So don't you consider this a serious reason against stripping/changing the
dollar sign?
Do you think that would be a good effect for PHP users if that change would
exist
in a future version of PHP (even in PHP6!)? It's a simple change but a great
shift!
> Hey, why not make it configurable (ini option) ?! :D
I really do not find it reasonable to change the dollar sign to
something
else.
If we could switch the dollar sign notation in variables on and off
with a directive in php.ini, that would break backwards compatibility
between apps
not only in a single user environments but also in shared hosting
envs.
Imagine having to switch into dollar sign notation for a phpbb
installation
and to a notation without the dollar sign for a custom
application. It's
just
crazy!
http://en.wikipedia.org/wiki/Sarcasm ... I hope :-D
I'm not being sarcastic, if you mean it. :p
Regards
Marco
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php