<?php class A { public function __construct(string $v) { $this->v = $v; } } $a = new A("init string"); var_dump($a->v); // fill with integer $a->v = 5; var_dump($a->v);
You have javascript disabled. You will not be able to edit any code.