¡@

Home 

php Programming Glossary: testxprivate

Array to Object and Object to Array in PHP - interesting behaviour

http://stackoverflow.com/questions/6325447/array-to-object-and-object-to-array-in-php-interesting-behaviour

var_dump testObj Result array 2 xpublic string 3 x1 testxprivate string 4 x2 OK xprivate property becomes testxprivate Let's.. 3 x1 testxprivate string 4 x2 OK xprivate property becomes testxprivate Let's convert this array to object. newObj object testObj var_dump.. newObj is a stdClass object. And the question is Why does testxprivate become a private property xprivate not testxprivate of the new..