by Example
Display the drop-down list
Configuration of preg_grep()
<?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 preg_grep extends function_core
{
public $constant_prefix = ['flags' => 'PREG_GREP'];
public $examples = [
[
'_SINGLE_QUOTE_/^(\d+)?\.\d+$/_SINGLE_QUOTE_',
[
0 => 123,
1 => 0.456,
2 => 'xyz',
],
]
];
public $synopsis = 'array preg_grep ( string $pattern , array $input [, int $flags = 0 ] )';
}
Help
Misc
Config
Test
Unit test
Powered by
PHP 7.1.33 (0.002 s)
2014-2017 Michel Corne