I've been echoing variables by simply typing "echo" then the variable. For instance:
<?php
$name = "Me";
echo $name;
?>
This has been working just fine. I was watchign a tutorial and when he echoed his variable he put his in curly brackets. This is the example:
<?php
$username = $_POST['username'];
$password = $_POST['password'];
echo "{username} : {$password}";
?>
Did he do it like that because of the POSTS command? Was this necessary? Help me understand, please? Thanks