Hi!
Does anyone know what are the official names for the "->" and "=>"
operators? They don't seem to be included in the PHP documentation,
although I would have expected them to reside in the Operators section of
the manual.
=> is not exactly operator, it's part of the array operator syntax (e
Adi Nita wrote:
> Does anyone know what are the official names for the "->" and "=>"
> operators? They don't seem to be included in the PHP documentation,
> although I would have expected them to reside in the Operators section of
> the manual.
The tokens are T_OBJECT_OPERATOR and T_DOUBLE_ARROW r
On 30/01/12 13:34, Adi Nita wrote:
Hello,
Hello Adi,
Does anyone know what are the official names for the "->" and "=>"
operators? They don't seem to be included in the PHP documentation,
although I would have expected them to reside in the Operators section of
the manual.
Also, the "\" oper
Hello,
Does anyone know what are the official names for the "->" and "=>"
operators? They don't seem to be included in the PHP documentation,
although I would have expected them to reside in the Operators section of
the manual.
Also, the "\" operator used for declaring sub-namespaces is never men
>From: "Darrell Brogdon" <[EMAIL PROTECTED]>
>I don't think its really a resentment (for the most part) against OO in
>PHP even if it seems that way. One of the stated goals of PHP is to
>have a low learning curve and this is something it does very well. I'm
>sure you can agree that OO concepts
I don't think its really a resentment (for the most part) against OO in
PHP even if it seems that way. One of the stated goals of PHP is to
have a low learning curve and this is something it does very well. I'm
sure you can agree that OO concepts typically don't fit that criteria
which is why
>From: "Derick Rethans" <[EMAIL PROTECTED]>
Oh, hello. I recognise your name as one of the other authors of the book
"PHP 5 Power Programming", which I've recently got, and which looks very
good. It seems like all the "big guns" are on this list. :) (similar to
comp.lang.c++.moderated and comp.std
On Thu, 3 Feb 2005, Stanislav Malyshev wrote:
> PJ>>$b->a++; gives tmp = a; tmp = tmp+1; b->a = tmp;
> PJ>>
> PJ>>In my example (a date object, day being 31), at this I do not know
> PJ>>if one is assigning 32 to the property or if it's the result of
> PJ>>incrementation (or decrementation from 1
PJ>>$b->a++; gives tmp = a; tmp = tmp+1; b->a = tmp;
PJ>>
PJ>>In my example (a date object, day being 31), at this I do not know
PJ>>if one is assigning 32 to the property or if it's the result of
PJ>>incrementation (or decrementation from 1 to 0).
That's why one should use $date->NextDay() and $d
>From: "Stanislav Malyshev" <[EMAIL PROTECTED]>
> TS>>(***) This is how it's done in C++ (actually, a dummy int parameter),
which
> TS>>is a bit of a hack, to be able to specify both the pre- and
>
> In C++, functions differ by argument. In PHP, they don't.
Yes, but a different way might be used
On Thu, 3 Feb 2005 18:12:44 +0100
[EMAIL PROTECTED] (Terje Slettebø) wrote:
> > On Thu, 3 Feb 2005 11:47:13 +0100 (CET)
> > [EMAIL PROTECTED] (Derick Rethans) wrote:
> >
> > > On Thu, 3 Feb 2005, Sebastian Bergmann wrote:
> > >
> > > > Derick Rethans wrote:
> > > > > Use C++/Java if you want this.
TS>>(***) This is how it's done in C++ (actually, a dummy int parameter), which
TS>>is a bit of a hack, to be able to specify both the pre- and
In C++, functions differ by argument. In PHP, they don't.
Not to say I view that C++ hack as a kludge which is accepted only because
there's no other ch
> On Thu, 3 Feb 2005 11:47:13 +0100 (CET)
> [EMAIL PROTECTED] (Derick Rethans) wrote:
>
> > On Thu, 3 Feb 2005, Sebastian Bergmann wrote:
> >
> > > Derick Rethans wrote:
> > > > Use C++/Java if you want this.
> > >
> > > Java does not support operator overloading.
> >
> > So, that means PHP should
On Thu, 3 Feb 2005 11:47:13 +0100 (CET)
[EMAIL PROTECTED] (Derick Rethans) wrote:
> On Thu, 3 Feb 2005, Sebastian Bergmann wrote:
>
> > Derick Rethans wrote:
> > > Use C++/Java if you want this.
> >
> > Java does not support operator overloading.
>
> So, that means PHP shouldn't get it either,
14 matches
Mail list logo