PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [7de22ba59a]

Artifact 7de22ba59a35fb75d5b1a2efc706085fadbed895:

  • File doc/tests1all/str_word_count.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 307)

--TEST--
str_word_count
--FILE--
<?php


$r = str_word_count("This is-a sample string.", 2);
echo 'str_word_count("This is-a sample string.", 2) = ';
print_r($r);


?>
--EXPECT--
str_word_count("This is-a sample string.", 2) = Array
(
    [0] => This
    [5] => is-a
    [10] => sample
    [17] => string
)