Re: [PHP-WEBMASTER] suggestion for IF / THEN / ELSE operator

2014-01-22 Thread Alessandro Rosa
Thank you Peter for pointing me out to that blog. I hope that such feature would be implemented in the php standard distribution someday, cause it's getting too tedious to implement that construction using arrays and tokenizations. My opinion is that some PHP syntax should get closer to human l

Re: [PHP-WEBMASTER] suggestion for IF / THEN / ELSE operator

2014-01-22 Thread Peter Cowburn
On 22 January 2014 09:22, Alessandro Rosa wrote: > Thanks for the prompt reply, Mike ! > > I will look over the RFC and try to write down one. > For an "in" operator, the following blog post might be useful to you: http://nikic.github.io/2012/07/27/How-to-add-new-syntactic-features-to-PHP.html

Re: [PHP-WEBMASTER] suggestion for IF / THEN / ELSE operator

2014-01-22 Thread Alessandro Rosa
Thanks for the prompt reply, Mike ! I will look over the RFC and try to write down one. Alessandro Il Mercoledì 22 Gennaio 2014 10:16, Mike Griffiths ha scritto: On 22 January 2014 08:34, Alessandro Rosa wrote: Hello, > >my name is Alessandro Rosa and I'm a PHP developer from Italy. >I

Re: [PHP-WEBMASTER] suggestion for IF / THEN / ELSE operator

2014-01-22 Thread Mike Griffiths
On 22 January 2014 08:34, Alessandro Rosa wrote: > Hello, > > my name is Alessandro Rosa and I'm a PHP developer from Italy. > Is there any chance for you to consider the development of the following > variation of the IF / THEN / ELSE ? > > if ( $_a in { 2, 3, 4 } ) > > > where { 2, 3, 4 } is an

[PHP-WEBMASTER] suggestion for IF / THEN / ELSE operator

2014-01-22 Thread Alessandro Rosa
Hello, my name is Alessandro Rosa and I'm a PHP developer from Italy. Is there any chance for you to consider the development of the following variation of the IF / THEN / ELSE ? if ( $_a in { 2, 3, 4 } ) where { 2, 3, 4 } is an array of values. Yes, I know I could supply it by creating an ar