references and variables. Explaining the terms

http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/A_12310-PHP-Variables-and-References.html

Is a great tutorial
which links to a good example
http://php.net/manual/en/language.oop5.references.php#101900

What are real world explanations for all the terms
references
variables
values
clones
LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

n2fcCommented:
Explanations as follows:
1) References: Think of these as pointers to or address locations of variables or objects

2) Variables:  These are symbols that contain values that can be modified by assignment

3) Values:  These are what are CONTAINED in variables...   These are the "right side" of assignment statements and are used to modify variables

4) Clones: Clones are copies of objects as distinct new objects... Normally an object assignment would result in a reference to the original object (another pointer to the same thing)... When you make a clone, you create another object, copied from the original
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
What n2fc said!  Originally PHP was intended to be the "easiest programming language to learn," but the plain truth is that programming languages are formal and structural, and none of them are really easy to learn well.  Sometimes it's a matter of making numerous teaching examples, and experimenting with them over and over -- making small changes and observing the different behaviors.
0
rgb192Author Commented:
thanks for explaining terms.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.