$name = "Shaab";
$age = 12;
echo $name."is".$age."years old";
It's output is
Shaab is 12years old
But i don't want to display it as above. I want to store this to another variable. Like
result= Shaab is 12years old
How can I do this?
Your question already have the answer.
$result = $name."is".$age."years old";
echo $result;