Re: RFC - Array slice syntactic sugar

From: Date: Fri, 20 Mar 2015 20:10:20 +0000
Subject: Re: RFC - Array slice syntactic sugar
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-85323@lists.php.net to get a copy of this message
> I posted four suggestions earlier, > > They were: > > @ > & > * > ^ > > My favourites are the asterisk or caret. That’s no different than @ being invalid because it’s already in use. $ php -a Interactive shell php > define('a', 1); php > define('b', 2); php > echo @a . "\n"; 1 php > echo (a&b) . "\n"; 0 php > echo (a*b) . "\n"; 2 php > echo (a^b) . "\n"; 3 php > However: ☃ has a long history of being available to PHP. S

« previous php.internals (#85323) next »