Re: Question on class syntax

This is a discussion on Re: Question on class syntax within the PHP General forums, part of the PHP Programming Forums category; Hi Luis, http://www.php.net/manual/en/keyword...ekudotayim.php Basically, if this is global code, you are calling ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-07-2003
Greg Beaver
 
Posts: n/a
Default Re: Question on class syntax

Hi Luis,

http://www.php.net/manual/en/keyword...ekudotayim.php

Basically, if this is global code, you are calling the method cleanup of
class htmlcleaner as if it were simply a function. Within a class, the
$this variable is set, and calling htmlcleaner::cleanup() will work as
if cleanup() were a method of your own class.

Greg
--
phpDocumentor
http://www.phpdoc.org

Luis Lebron wrote:
> I am currently using a php class that uses the following syntax:
>
> $value= htmlcleaner::cleanup($value);
>
>
> What exactly is the :: used for? Is there a different syntax for :: ?
>
> thanks,
>
> Luis R. Lebron
> Project Manager
> Sigmatech, Inc
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0