Popular Posts

Sunday, February 26, 2012

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 );


No comments: