Php 输出错误
Php output error
我的代码有什么问题?
$text="hello world";
echo "the string above contains .$text";?>
我在执行代码时收到错误消息,谢谢!
您在第 2 行有语法错误,
试试这个方法
<?php
$text="hello world";
echo "the string above contains $text";?>
可能是你忘了写 php 起始标签
<?php
$text="hello world";
echo "the string above contains .$text";
?>
您似乎省略了第一行:
<?php
$text="hello world";
echo "the string above contains ".$text;
?>
$text = "hello world";
echo "text is " . $text;
我的代码有什么问题?
$text="hello world";
echo "the string above contains .$text";?>
我在执行代码时收到错误消息,谢谢!
您在第 2 行有语法错误, 试试这个方法
<?php
$text="hello world";
echo "the string above contains $text";?>
可能是你忘了写 php 起始标签
<?php
$text="hello world";
echo "the string above contains .$text";
?>
您似乎省略了第一行:
<?php
$text="hello world";
echo "the string above contains ".$text;
?>
$text = "hello world";
echo "text is " . $text;