echo() function

echo function outputs string.
Note echo() function we can call it a exactly because it works without parenthesis also.

Some Examples :

1.
$str = "Hello !!";
echo $str;


Output of the above code will be

Hello !!

2.

$name = "Deven";

echo "My Name is $name";


Output of the above code will be :

My Name is Deven

3.

$name = "Deven";


My Name is

Output of the above code will be :

My Name is Deven

0 comments:

Post a Comment