Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $text1 = array ('you', 'hello', 'WORLD');
- $text2 = "Hello world";
- //preg_match
- foreach ($text1 as $text) {
- if (preg_match_all("~b$textb~i", $text2, $match)) {
- $match = $match[0];
- echo "<pre>";
- print_r($match);
- echo "</pre>";
- }
- }
Add Comment
Please, Sign In to add comment