What is the correct way to include a space between two variables in an input field value in PHP?

To include a space between two variables in an input field value in PHP, you can concatenate the variables with a space character within the value attribute of the input field. This can be done by using the "." operator to concatenate the variables and the space character.

<?php
$variable1 = "Hello";
$variable2 = "World";
?>

<input type="text" name="example" value="<?php echo $variable1 . ' ' . $variable2; ?>">