Using Regular Expressions with PHP

Using Regular Expressions with PHP
$names = array('Andrew','John','Peter','Nastin','Bill');
$output = preg_grep('/^[a-m]/i', $names);
print_r( $output );


Comments

Popular posts from this blog

PHP Help: PHP Freaks!