Welcome Guest, Not a member yet? Register   Sign In
As experienced web developer what is the cause of this issue?
#12

When PHP processes a file, it just outputs lines outside the PHP tags.
So in your sample code, the empty line between the PHP tags is output.

Code:
$ cat test.php
<?php

?>
// This line
<?php

?>

Code:
$ php test.php
// This line
$

Code:
$ cat test.php
<?php

?>

<?php

?>

Code:
$ php test.php

$

Code:
$ cat test.php
<?php

?>
<?php

?>

Code:
$ php test.php
$
Reply


Messages In This Thread
RE: As experienced web developer what is the cause of this issue? - by kenjis - 05-23-2024, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB