Discussion: Meaning of "->"
Afficher un message
Vieux 18/06/2008, 19h35   #2
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Meaning of "->"

On Wed, 18 Jun 2008 19:22:44 +0200, Twayne <nobody@devnull.spamcop.net>
wrote:

> Hi,
>
> I'm studying some validation code and I can't figure out the meaning of
> "->"
> in the following context:
> -------------------
> function addCheck($field){
> $this->mandatory[] = $field;
> }
>
> function addCheckEmail($field){
> $this->mandatory_mail[] = $field;
> ^
> ...
> -------------------
>
> I've spent a good amount of time trying to search for information or
> similar code on it without success and unfortunately I've lost where I
> got the code from; dumb move, I know!
>
> Is "$this->mandatory[] " simply a variable name? There are
> several variations in the code ( "$this->mandatory_whatever[]" ), but
> the format is strange to me, causing me to wonder if there is more to it
> than "just a variable name".
> I've had no definitive luck sandboxing it either.
>
> Thanks for any light you can shed for this rank newbie<g>,


Start here:
http://nl.php.net/manual/en/language.oop5.php
--
Rik Wasmus
....spamrun finished
  Réponse avec citation
 
Page generated in 0,05504 seconds with 9 queries