Problems with Objects & Php4
| From: | Ben Meyer | Date: | Thu, 17 Aug 2000 20:35:31 +0000 |
| Subject: | Problems with Objects & Php4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12351@lists.php.net to get a copy of this message | ||
(1) Are there known problems with Objects in Php4? If so, what are the most
common?
(2) I am having a problem with two objects. The objects are basically used
like C/C++ structures without functions, i.e. a collection of variables.
However, the object is only containing the last value that I put in it.
Example:
class Person
{
var $Name,$Height,$Weight;
}
$Me = new MyVariables;
$Me->$Name = "Al";
$Me->$Height = "72";
$Me->$Weight = "130";
echo $Me->$Name; //Output 130, should be 'Al'
Am I doing anything wrong?
Thanks for the help in advance.
Benjamen R. Meyer