RE: [PHP] -> operator and :: (formal names?)
| From: | Michael Sims | Date: | Mon, 26 Jul 2004 18:36:11 +0000 |
| Subject: | RE: [PHP] -> operator and :: (formal names?) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191904@lists.php.net to get a copy of this message | ||
Katie Marquez wrote:
> Hi!
>
> I did a search of the PHP manual for these:
>
> -> and ::
>
> I know what they are used for, but what I don't know
> is what they are formally called. Can someone tell me
> what they are called (short of using the symbol in the
> name)?
I don't know what PHP's official name for these operators are but in Perl the
"->"
is called the "infix arrow operator" since it lies between its operands (the
instance variable and the attribute or method name). I've seen the "::" referred to
as the "double-colon operator", but I don't know how offical that is either. :)
HTH