Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHPにはこのstdClassがあります:
<?php $fakeobj->hi = "o"; echo $fakeobj->hi;
見る?これはphp4ですか?
StdClass は php 4 および 5 に存在します。必ずしもいずれかであるとは限りません。メソッドを持たない単なる基本的なクラスの実装であり、値オブジェクトです。たとえば、明示的なユーザー定義クラスなしでオブジェクトを生成する必要がある場合、json_decodeまたはクラスが明示的にマップされていない場合に SOAP 要求によって返される値オブジェクトを生成する必要がある場合に、一部の関数で使用されます。もちろん、ユーザー/開発者も使用できます。
json_decode