您好,欢迎访问一九零五行业门户网

php 打印、显示、输出函数 收集_PHP教程

foo);
echo this is {$baz[value]} !; // this is foo !
// using single quotes will print the variable name, not the value
echo foo is $foo; // foo is $foo
// if you are not using any other characters, you can just echo variables
echo $foo;          // foobar
echo $foo,$bar;     // foobarbarbaz
// some people prefer passing multiple parameters to echo over concatenation.
echo this , string , was , made , with multiple parameters., chr(10);
echo this . string . was . made . with concatenation. . ;
echo this uses the here document syntax to output
multiple lines with $variable interpolation. note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
end;
// because echo does not behave like a function, the following code is invalid.
($some_var) ? echo true : echo false;
// however, the following examples will work:
($some_var) ? print true : print false; // print is also a construct, but
                                             // it behaves like a function, so
                                             // it may be used in this context.
echo $some_var ? true: false; // changing the statement around
?>
====================
php die() 函数
http://www.bkjia.com/phpjc/486540.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/486540.htmltecharticle?php echo hello world ; echo this spans multiple lines. the newlines will be output as well ; echo this spansmultiple lines. the newlines will beoutput as well. ; echo escaping cha...
其它类似信息

推荐信息