Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在PHP中,当对象属性具有特殊字符时,如何访问它_Php_Object - Fatal编程技术网

在PHP中,当对象属性具有特殊字符时,如何访问它

在PHP中,当对象属性具有特殊字符时,如何访问它,php,object,Php,Object,请帮助我获取“@odata.nextLink”属性值。 我试图b2cUser->@odata.nextLink,但它有语法错误 您需要将属性添加到“{}”中 您需要将属性添加到“{}”中 $b2cUser->{'@odata.nextLink'}

请帮助我获取“@odata.nextLink”属性值。
我试图
b2cUser->@odata.nextLink
,但它有语法错误


您需要将属性添加到“{}”中


您需要将属性添加到“{}”中

$b2cUser->{'@odata.nextLink'}