You can use classes, for example:
class Car { public $engine; public $numberOfDoors; public $howFast; } $myCar = new Car(); $myCar->engine = 'Nice Engine'; $myCar->numberOfDoors = 4; $myCar->howFast = 150;
or if you need this object only for storing properties, you can use an associative array, for example:
$myCar['engine'] = "Nice engine"; $myCar['numberOfDoors'] = 4; $myCar['howFast'] = 150;
package
source share