0
Why are we putting dots there ?
echo "name is " .$name. //Why are there dots before and after $name?
1 Answer
+ 1
php uses dots to concatenate strings so:
echo "name is " . $name; => echo "name is $name";
and the dot after $name is meaningless and will raise an error (it should be ; not .)
Note: dots should only be used before variables\strings not after them