note 6311 deleted from echo by ronabop

From: Date: Wed, 21 Mar 2001 05:39:32 +0000
Subject: note 6311 deleted from echo by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12603@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>

« previous php.notes (#12603) next »