字串函式庫

echo

(unknown)

echo ---  輸出字串

語法 : echo (string arg1, string [argn]...)

說明 : 

輸出參數

echo( )不是個真的函式(它是個語言結構),所以你並不必使用括弧。

Example :

<?php

    echo "Hello World"; 

    echo "This spans multiple lines. The newlines will be output as well"; 

    echo "This spans\nmultiple lines. The newlines will be\noutput as well.";

?>

注意 : 事實上,如果你想要傳遞一個以上的參數到此函式時,你不能使用括弧來將參數圍在裡面

參考 : print( )  printf( )  flush( )


上一頁 首頁 下一頁