1<?php 2class Struct 3{ 4 public $var; 5 6 public function __construct($var) 7 { 8 $this->var = $var; 9 } 10} 11