You are here: Re: Exposing Variables « PHP Programming Language « IT news, forums, messages
Re: Exposing Variables

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
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация