2008-10-10から1日間の記事一覧
$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() としても同じ。