I have written php script as follows but the line break used before var_dump function is not producing a line break before giving bool(true). Please help me in find what mistake I am doing.
<?php
class Fruit {
}
$apple = new Fruit();
echo "<br>" . var_dump($apple instanceof Fruit) . "<br>";
?>
Output:
bool(true)
No line break before bool(true)
Instead of using <br> for the output and splitting it into 3 complete statements (as suggested in the comment), it is better to use <pre>.
Output:
With the line breaks which are contained in the var_dump output are processed.