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 返回键名为“@”的值
[directory] => stdClass Object ( [@id] => 87e0cfeb-e7ea-4814-80ac-a98f770811eb [@title] => _root [@hasClips] => 1 )
你可以这样做:
$your_variable->{"@id"}