by Example
Display the drop-down list
Configuration of str_word_count()
<?php
/**
* PHP By Example
*
* @copyright 2014 Michel Corne
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU GPL v3
*/
require_once 'models/function_core.php';
/**
* Function configuration
*
* @see docs/function-configuration.txt
*/
class str_word_count extends function_core
{
public $examples = [
[ "Hello fri3nd, you're
looking good today!", 1],
["Hello fri3nd, you're
looking good today!", 2],
["Hello fri3nd, you're
looking good today!", 1, 'àáãç3'],
];
public $options_range = ['format' => [0, 2]];
public $synopsis = 'mixed str_word_count ( string $string [, int $format = 0 [, string $charlist ]] )';
}
Help
Misc
Config
Test
Unit test
Powered by
PHP 7.1.33 (0.003 s)
2014-2017 Michel Corne