Java T_Echo用于json链接连接
什么是t_回声?当我尝试将$jsonData回显到我的链接时,什么也没发生,它有一个随机的意外错误。我以前从未见过这种错误。这是代码Java T_Echo用于json链接连接,java,php,html,json,xcode,Java,Php,Html,Json,Xcode,什么是t_回声?当我尝试将$jsonData回显到我的链接时,什么也没发生,它有一个随机的意外错误。我以前从未见过这种错误。这是代码 <?php $jsonData = echo file_get_contents("http://foothillertech.com/student/webdesign/2019/benrud_02_2019/tinker/retail/clothesData.json"); var_dump($jsonData); ?>
<?php
$jsonData = echo file_get_contents("http://foothillertech.com/student/webdesign/2019/benrud_02_2019/tinker/retail/clothesData.json");
var_dump($jsonData);
?>
?>var中不能有回声
<?php
$jsonData =file_get_contents("http://foothillertech.com/student/webdesign/2019/benrud_02_2019/tinker/retail/clothesData.json");
var_dump($jsonData);
?>
但是这个问题已经有了关于堆垛机流程的答案这里回声的意义是什么?您不需要它,只需将file\u get\u contents的返回值赋给您的变量即可。谢谢,我没有意识到这一点。对。但是,您是否知道
echo$var=“123abc”代码>是有效语法吗?这可能是他们想做的,但他们反过来了。是的,当我回答时,我根本没有这样想。