<?php//PHP 中没有结构体class ColorPoint { //字段 public $x, $y; //PHP 8.4 之前没有计算属性; //8.4 引入了属性钩子 public $Color;}