PHP Using Preg_Match To Return Array Of Matches That Start With Ple – String Function

<?php
$subject = "example";
$pattern = '/^ple/';
preg_match($pattern, $subject, $matches);
print_r($matches);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.