Posted by Jerry Stuckle on 12/28/06 05:10
Jim Carlock wrote:
> ::Jerry Stuckle:: posted...
> : It's better not to use globals. Rather, pass the needed values in
> : the function call. Much better programming practice.
>
> Thanks Jerry and Hendri.
>
> I ran into a problem using "global" where I copied a variable name
> outside of a function and even though I didn't put anything in the
> outside variable.
>
> When creating a class in PHP 4, I'm not seeing any kind of
> private variables. Is there a way to simulate private variables
> in PHP 4 ?
>
> I've been thinking about moving to PHP 5.x, but before I finalize
> and commit to such... I'm exploring classes in PHP 4.
>
Sorry, there really isn't. PHP 5 has much better encapsulation.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|