PHP でオブジェクト ハッシュ
$hash = (object)array(); $hash->user->name = 'scott'; $hash->user->pass = 'tiger';
$hash は stdClass のインスタンスとなる。
もちろん最初に new stdClass() としても同じ。
$hash = (object)array(); $hash->user->name = 'scott'; $hash->user->pass = 'tiger';
$hash は stdClass のインスタンスとなる。
もちろん最初に new stdClass() としても同じ。