Adding spaces between strings


Hello, My doubt isn't so much about a problem, but more of a inquiry.

I wrote my code as follows

function aboutMe($name,$age){
echo "Hello! My name is".$name." and I am".$age."years old." ;

And the result was:
Hello! My name isAlexander and I am15years old.

What I was wondering is, that is there a way to add spaces between "is" and "Alexander", or 15 and "years"?.


Yes .....You will have to modify your echoing statement..put space before and after the words

echo "Hello! My name is ".$name." and I am ".$age." years old." ;


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.