note 81980 added to function.echo
| From: | mr dot karam at msn dot com | Date: | Sat, 22 Mar 2008 09:34:45 +0000 |
| Subject: | note 81980 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137316@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 41.235.139.137
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/81980
Del: integrated -- https://master.php.net/note/delete/81980/integrated
Del: useless -- https://master.php.net/note/delete/81980/useless
Del: bad code -- https://master.php.net/note/delete/81980/bad+code
Del: spam -- https://master.php.net/note/delete/81980/spam
Del: non-english -- https://master.php.net/note/delete/81980/non-english
Del: in docs -- https://master.php.net/note/delete/81980/in+docs
Del: other reasons-- https://master.php.net/note/delete/81980
Reject -- https://master.php.net/note/reject/81980
Search -- https://master.php.net/manage/user-notes.php