Structures (records)

<?php

//In PHP there are no structures
class Point {
    public $x, $y;

    function __construct(int $x, int $y) {
        $this->x = $x;
        $this->y = $y;
    }
}

$p1 = new Point(12);
//p1.x is 1 and p1.y is 2
print_r($p1);