shift_001.phpt 236 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. shifting strings left
  3. --FILE--
  4. <?php
  5. $s = "123";
  6. $s1 = "test";
  7. $s2 = "45345some";
  8. $s <<= 2;
  9. var_dump($s);
  10. $s1 <<= 1;
  11. var_dump($s1);
  12. $s2 <<= 3;
  13. var_dump($s2);
  14. echo "Done\n";
  15. ?>
  16. --EXPECTF--
  17. int(492)
  18. int(0)
  19. int(362760)
  20. Done