How to use Strings
Single quoted strings
echo 'Hello World';Double quoted strings
echo "Hello World";Double quoted strings with variable
echo "$var1 Hello World";Double quoted strings with variable inside curly braces
echo "{$var1} Hello World";Concatenating Strings
echo "Hello" . " World"; echo "Hello" . $var1; echo getvar1() . "Hello";
No comments:
Post a Comment