View Single Post
Old 08-19-2008, 08:32 PM   #4 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

It might also be worth to notice that $this is a reserved keyword and cannot be overridden when called inside a method.

$this is only available when a method is called from an intialized object, and not staticlly calls, eg. this wouldn't work:

PHP Code:
<?php
    
class TalkPHP
    
{
        protected 
$name;


        public static function 
who($name)
        {
            
$this->name $name;
        }
    }

    
TalkPHP::who('Kalle');
?>
Hope this helps you abit further ;)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
The Following User Says Thank You to Kalle For This Useful Post:
frosty (08-19-2008)