Re: Operator question
| From: | Richard Davey | Date: | Tue, 09 Dec 2003 16:16:07 +0000 |
| Subject: | Re: Operator question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172274@lists.php.net to get a copy of this message | ||
Hello Jeff,
Tuesday, December 9, 2003, 4:11:10 PM, you wrote:
JM> In PHP, what does the operator "-=" do? I can't find a ref to it's
JM> function in the online manual or any books I have.
Set's a negative value:
$a = 10;
$b -= $a;
or
$b -= 10;
In both cases $b will equal -10.
--
Best regards,
Richard mailto:rich@launchcode.co.uk