Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Сокращенные операции в PHP
- <?php
- $num = 2;
- $num -= 3; // эквивалентно $num = $num - 3;
- ?>
- <?php
- $num = 2;
- $num *= 3; // эквивалентно $num = $num * 3;
- ?>
- <?php
- $num = 2;
- $num /= 3; // эквивалентно $num = $num / 3;
- ?>
- <?php
- $str = 'a';
- $str .= 'b'; // эквивалентно $str = $str . 'b';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement