Snippets tagged “get-object-vars”
1 snippet uses this tag.
- How to print all properties of an objectPHP
To print all properties of an object in PHP, you can use the get_object_vars function, which returns an associative array of an object's properties.