Guest User

Untitled

a guest
Jun 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $array = [1, 2, 3];
  2. $result = $array[0]++; // Никаких ошибок код не выдаёт
  3. echo "<p> $result"; // В переменной 1 а не 2.
  4.  
  5. $result = ++$array[0];
  6.  
  7. $array = [1, 2, 3];
  8. $link = &$array[0];
  9. $result = $link++;
  10. var_dump($result, $link);
Add Comment
Please, Sign In to add comment