08-19-2008, 08:32 PM
|
#4 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
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 ;)
__________________
|
|
|