Server Side/PHP
[PHP] print (String Function)
DevES
2015. 7. 31. 07:33
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 !
?>