Page 1 of 1

Comma operator?

Posted: Fri Dec 05, 2003 2:57 pm
by Weirdan
Does anyone know if there is comma operator in PHP? I had seen it in the manual (in the operator's precedence table) but failed to get it to work.

For those who don't know what comma operator is:
Comma operator is used in C/C++/some other languages to evaluate several expressions but return result of the last one only.

Posted: Fri Dec 05, 2003 3:59 pm
by Kriek
To the best of my knowledge, no, PHP does not.
derick@php.net wrote:not likely to be implemented

Posted: Sat Dec 06, 2003 8:22 am
by Weirdan
Yeah, I read it. (Google loves me ;)). Just hope the php devs will change their minds....