note 124252 deleted from function.echo by cmb
| From: | cmb@php.net | Date: | Mon, 30 Sep 2019 15:16:26 +0000 |
| Subject: | note 124252 deleted from function.echo by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212442@lists.php.net to get a copy of this message | ||
Note Submitter: beldr447 at gmail dot com
----
So while doing some tests in the classroom I kind of found out that, at least on php version 7.3.9,
echo formats the spaces of any string you use it to not have any spaces on either left or right and
only have one space between words.
For example:
<?php
$text = " test text ";
echo $text;
?>
This would print out :
test text
Echo eliminated the spaces from the page output but on the page source the spaces would still be
there.