note 6311 modified in echo by ronabop
| From: | ronabop@php.net | Date: | Fri, 11 Aug 2000 17:35:50 +0000 |
| Subject: | note 6311 modified in echo by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1325@lists.php.net to get a copy of this message | ||
To echo text and variables on one line, this seems like the easiest way:
$x = "This works! I've tried it";
echo "x is: $x";
You can also include that straight into the HTML, like this:
<html><body>
<?php
$x = "This also works!";
?>
x is: $x
</body></html>
http://www.php.net/manual/function.echo.php