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 のプロパティがあります@(私のデバッガによると)。その値にアクセスするにはどうすればよいですか?
@
@averageBaseRate = "22.49"
中括弧を使用します。
$obj->{'@averageBaseRate'}
これは、オブジェクトに適用される複雑な (巻き毛の) 構文です。
その構文を使用すると、メンバー変数に任意の名前を使用できます。 本当に奇妙な Unicode 文字を名前に入れることさえできます。