티스토리 뷰

Output a string

int   print  (   string   $arg )
Outputs arg.

It is also not actually a real function like 'echo', you don't need to use parentheses with it.


Example:

<? php

print("Hello World!"); //Hello World!

print "Hi guys."; //Hi guys.

$foo = "foobar";

print "foo is $foo"; //foo is foobar

$bar = array("value"=> "foo");

print "this is {$bar['value']} !"; // this is foo !

?>




'Server Side > PHP' 카테고리의 다른 글

[PHP] define (Misc. Function)  (0) 2015.07.31
[PHP] echo (String Function)  (0) 2015.07.31
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함