PHP Dynamic object (like in AS3)

I can’t seem to find what I’m looking for. Perhaps it is really an array with strings as keys.

How do I create and set values for dynamic objects, like this in AS3:
var myObject = {prop1:“value”, yeardays:365, special:777};

I want the kind of object like the one returned by a MySQL query, and can get and set properties like this:
$myObject->id;
$myObject->value = “sdfdfgfg”;

Anyone at least have a name I can find this by?
Is it possible to create these objects shorthand like with the AS3’s curly brackets? {object:value}