note 32699 deleted from language.operators.assignment by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 00:09:57 +0000 |
| Subject: | note 32699 deleted from language.operators.assignment by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58397@lists.php.net to get a copy of this message | ||
Note Submitter: Chowshi
----
It is important to note that using "$string .= 8;" rather than "$string += 8;"
will put it on the end e.g:
<?php
$string = 4;
$string .= 8;
echo $string;
?>
Will display 48 wereas:
<?php
$string = 4;
$string += 8;
echo $string;
?>
Will display 12.
Note: You cannot use "$string += whatever" on a string with text in.
<br><br>
PS Sorry if this is incorrect - I'm still learning.