PHP String Concatenation
by TechVidvan Team
Program 1
<html>
<head><title>String Operator in PHP</title>
<body>
<center>
<?php
// $a=50;
// $b=30;
// $c=$a+$b;
// echo "Addtion of ".$a." and ". $b. " is ".$c
$x="Data";
$y=" Flair Free Course";
$x.=$y;
echo $x;
/*
a=70 , b 30 // grater between 70 and 30 is 70
*/
?>
</center>
</body>
</html>
Tags: PHPphp practicalphp programphp string concatenationphp string operatorstring concatenation in phpstring operator in php
TechVidvan Team
TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.