-1

I have a simple php :

<title><?php echo $user["right_name"] ;echo  $user["surname"]; ?></title>

But.. what it does, it prints users name and surname in title of webpage, but without spaces, how to fix that and make space between name and surname?

Thanks :)

David Stančík
  • 340
  • 6
  • 23

2 Answers2

0
<title><?php echo $user["right_name"] . ' ' . $user["surname"]; ?></title>
cmorrissey
  • 8,493
  • 2
  • 23
  • 27
0

Concatenate a space character between them:

<title><?php echo $user["right_name"]." ".$user["surname"]; ?></title>