Just define a class. A class is nothing more than a container to hold an object.
class foo {
var variable1;
var variable2;
var variable3;
var variableX;
}
You don't have to have any methods present in a class. I actually used this in a few web applications I made. It was easier to pass the object around to different functions rather than passing a ton of variables in the parameter list.
As far as an array of objects, I believe that you can define them as array variables.
Ex.
$my_array = array();
$my_array[0] = new foo();
$my_array[1] = new foo();
... and so on.
I am not positive that this will work but you can give it a try.
Hope this helps.