KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to set multiple properties at a time for an object in php? Instead of doing: $object->prop1 = $something; $object->prop2 = $otherthing; $object->prop3 = $morethings; do something like: $object = (object) array( 'prop1' => $something, 'prop2' => $otherthing, 'prop3' => $morethings ); but without overwriting the object .
Tags (comma-separated)
Save Edits
Cancel