What is {$variable_name} in PHP 5?
I think that prints value of $error variable with HTML tag in echo statement. Am I right?
$error = 'this is an error.';
...
<?php
if (isset($error)) {
echo "<p> {$error} </p>\n";
}
?>
But I don't know the difference between <p> {$error} </p>
and <p> $error </p>
.
{$error}
and$error
. – chlusher Apr 05 '16 at 13:31$error
==={$error}
` please read the informations on the links! – Sebastian Brosch Apr 05 '16 at 13:33