Re: Exposing Variables
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 00:10:58 -0500
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@xxxxxxxxxxxxx
==================
.
- References:
- Exposing Variables
- From: Jim Carlock
- Re: Exposing Variables
- From: Jerry Stuckle
- Re: Exposing Variables
- From: Jim Carlock
- Exposing Variables
- Prev by Date: Re: question on passing a "variable" back to a calling page
- Next by Date: Re: number of logins
- Previous by thread: Re: Exposing Variables
- Next by thread: Help in understanding php
- Index(es):
Relevant Pages
|