mb_split-compat-01.phpt 420 B

123456789101112131415161718192021222324
  1. --TEST--
  2. mb_split() compat test 1
  3. --EXTENSIONS--
  4. mbstring
  5. --SKIPIF--
  6. <?php
  7. function_exists('mb_split') or die("skip mb_split() is not available in this build");
  8. ?>
  9. --FILE--
  10. <?php
  11. /* (counterpart: ext/standard/tests/reg/009.phpt) */
  12. $a=mb_split("[[:space:]]","this is a
  13. test");
  14. echo count($a) . "\n";
  15. for ($i = 0; $i < count($a); $i++) {
  16. echo $a[$i] . "\n";
  17. }
  18. ?>
  19. --EXPECT--
  20. 4
  21. this
  22. is
  23. a
  24. test