Tuesday, 9 June 2020

instead concatenation we canuse double quotes also

instead concatenation we canuse double quotes also
echo "$x +$y =$z";
250 + 250 = 500
<?php
$day= 31;
$month=  'december'
$year = 2017;
echo "$day $month $year";
echo $day.'  '.$month.'  '.$year;
space is used for if we require space
or
we can store in variable and print that

$date= $day.'  '.$month.'  '.$year;
echo $date;













illegal way to concatenate
how to rpint date  using variables
hwo to print the date with concatenation echo
how to print the date after assigned tovaraiable

No comments:

Post a Comment