note 81980 deleted from function.echo by nlopess
| From: | nlopess@php.net | Date: | Sat, 22 Mar 2008 13:36:36 +0000 |
| Subject: | note 81980 deleted from function.echo by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137319@lists.php.net to get a copy of this message | ||
Note Submitter: mr dot karam at msn dot com
----
You can also combine text strings and variables. By doing such a conjunction you save yourself from
having to do a large number of echo statements. Variables and text strings are joined together with
a period( . ). The example below shows how to do such a combination.
<?php
$my_string = "Hello Bob. My name is: ";
$newline = "<br />";
echo $my_string."Bobettta".$newline;
echo "Hi, I'm Bob. Who are you? ".$my_string.$newline;
echo "Hi, I'm Bob. Who are you? ".$my_string."Bobetta";
?>
Display:
Hello Bob. My name is: Bobetta
Hi, I'm Bob. Who are you? Hello Bob. My name is:
Hi, I'm Bob. Who are you? Hello Bob. My name is: Bobetta
regards
www.arabpark.net
www.gulfson.com