stdClass and __set
Posted: Wed Oct 13, 2010 10:41 am
Hello.
I have an object I created from class Post.
will return the class Post.
After I assign a variable to the class using the magic method __set
will return stdClass.
Why did the class change?
I have an object I created from class Post.
Code: Select all
$p = new Post();
get_class($p) After I assign a variable to the class using the magic method __set
Code: Select all
$p->datereceived = "1234";Code: Select all
get_class($p)Why did the class change?