edorian, In the PHP 5.3 days we had a couple use cases where we did object to array casts and used the var_dump($x["\0ClassName\0PropertyName"]); formatting to extract data.
(It was really fast compared to Reflection back then and it was for a good cause. I promise :P)
Today while chatting with @beberlei about those times I was reminded that in 7.4 https://www.php.net/manual/en/function.get-mangled-object-vars.php was introduced.
Totally missed that at the time. Good memories!
Have you ever used this, and why? :)
Add comment