shift_001.phpt 364 B

1234567891011121314151617181920212223242526272829
  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. Warning: A non-numeric value encountered in %s on line %d
  19. int(0)
  20. Notice: A non well formed numeric value encountered in %s on line %d
  21. int(362760)
  22. Done