As we know, creating anonymous objects in JavaScript is easy, like the code below:
var object = {
p : "value",
p1 : [ "john", "johnny" ]
};
alert(object.p1[1]);
Output:
an alert is raised with value "johnny"
Can this same technique be applied in PHP? Can we create anonymous objects in PHP?