hursday, January 12, 2006 1:28 AM
Subject: [PHP] private, public, protected in 4.3.11
> Hi,
>
>
>
> Example code that I try to run in version 4.3.11:
>
>
>
> Class Page {
>
> private $myID;
>
>
>
>
"exception, final, php_user_filter, interface, implements, extends, public,
private, protected, abstract, clone, try, catch, throw" where not introduced
until PHP 5 (http://ca3.php.net/reserved).
Therefore, var is the only way to define member variables prior to PHP 5.
Aaron
On 1/11/06, Peter
Hi,
Example code that I try to run in version 4.3.11:
Class Page {
private $myID;
function Page() {
$this->myID=1;
}
function getID() {
return $this->myID;
}
}
But I get erro
3 matches
Mail list logo