Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $array = [1, 2, 3];
- $result = $array[0]++; // Никаких ошибок код не выдаёт
- echo "<p> $result"; // В переменной 1 а не 2.
- $result = ++$array[0];
- $array = [1, 2, 3];
- $link = &$array[0];
- $result = $link++;
- var_dump($result, $link);
Add Comment
Please, Sign In to add comment