NYCPHP Meetup

NYPHP.org

[nycphp-talk] Significance of the '::' Notation/Convention in Functions

Scott Mattocks scott at crisscott.com
Fri Sep 29 10:28:43 EDT 2006


It is used to call methods statically and it is part of "pure" PHP.

http://us2.php.net/manual/en/keyword.paamayim-nekudotayim.php

Phil Duffy wrote:
> What is the significance of the '::' notation in functions?  It seems to
> appear in PEAR, as in PEAR::isError()
> <http://pear.php.net/manual/en/core.pear.pear.iserror.php> , but I have also
> seen it in Seagull, which is based upon PEAR.  I assume it is not a part of
> pure PHP since it doesn't appear in any of the indices in the PHP books I
> have read.  I have not found an explanation of this notation in the PEAR
> Manual.
> 
> Phil Duffy
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

-- 
Scott Mattocks
Author of: Pro PHP-GTK
http://www.crisscott.com



More information about the talk mailing list