php-src/Zend/tests/shift_002.phpt
2007-04-28 11:59:08 +00:00

26 lines
234 B
PHP

--TEST--
shifting strings right
--FILE--
<?php
$s = "123";
$s1 = "test";
$s2 = "45345some";
$s >>= 2;
var_dump($s);
$s1 >>= 1;
var_dump($s1);
$s2 >>= 3;
var_dump($s2);
echo "Done\n";
?>
--EXPECTF--
int(30)
int(0)
int(5668)
Done