rfc:assignment-overloading
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
rfc:assignment-overloading [2016/01/04 00:32] – created pollita | rfc:assignment-overloading [2016/01/04 00:42] – Fix ** and **= being treated as formatting pollita | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | PHP allows for basic operator overloading for builtin objects. | + | PHP allows for basic operator overloading for builtin objects. |
<?php | <?php | ||
Line 14: | Line 14: | ||
var_dump($h); | var_dump($h); | ||
- | Specifically, | + | Specifically, |
- | In addition, the assignment versions of these operators ( += -= *= /= **= .= ) are supported by executing a normal operation followed by a store. | + | In addition, the assignment versions of these operators ( += -= *= /= %%**%%= .= ) are supported by executing a normal operation followed by a store. |
<?php | <?php |
rfc/assignment-overloading.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1