Hello there.
I'm new to this board and to PHP though not to programming (mostly C++).
I should tell you before I contenue that I'm danish which means that my gramar isn't the best.
Now so far I have been learning PHP from the online manual foound on www.php.net and so far it has been smoth.
But now I've run into this which I find strange:
http://www.php.net/manual/en/language.oop5.basic.php
Look at the "Example 18-3 Object Assignment"
Now I'm a bit confuesed.
My experience with objects is from C++ and this is nothing alike.
Why is it that $instance->var = '$assigned will have this value'; effects $assigned when the only thing they have in relation is the following: $assigned = $instance;
In short the content of $instance got copied to $assigned.
There is o reference or anything
So.... how come?