Re: Class variable declarations: public/private/protected
- From: "\(¯`·..Yttrium ...·´¯\)" <POUSSIERES.piegaspam@xxxxxxxx>
- Date: Fri, 29 Apr 2005 15:04:47 +0200
"Screwball" <screwball127@xxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de
news: B2qce.21816$G8.6456@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> <?php
> class myClass
> {
> var $myVar;
> .
> .
> }
> ?>
>
> In php.ini I have error_reporting = E_ALL | E_STRICT
> The above code is causing the following error/notification in my Apache
> logs:-
>
> "PHP Strict Standards: var: Deprecated. Please use the
> public/private/protected modifiers."
>
> Searching in the most current .chm help finds very little, indeed the
> class definition examples still use var.
>
> I understand the reason for the warning, what I don't have is a scope
> definition for public, private and protected nor an explicit definition
> of how to use the modifiers.
>
> Any help on the above would be appreciated.
>
> Steve.
>
> --
> PHP 5.0.4 Apache 2.0.54 Win2K/SP4
> If you must reply by email, remove the DOT's first...
Hi, every things here :
http://www.php.net/manual/en/language.oop5.visibility.php
.
- Follow-Ups:
- Re: Class variable declarations: public/private/protected
- From: Screwball
- Re: Class variable declarations: public/private/protected
- References:
- Class variable declarations: public/private/protected
- From: Screwball
- Class variable declarations: public/private/protected
- Prev by Date: Class variable declarations: public/private/protected
- Next by Date: Re: Class variable declarations: public/private/protected
- Previous by thread: Class variable declarations: public/private/protected
- Next by thread: Re: Class variable declarations: public/private/protected
- Index(es):
Relevant Pages
|