<?php preg_match_all( '/(foo)|(bar)|(baz)/', 'a foo b c baz d', $matches ); var_dump( $matches );
You have javascript disabled. You will not be able to edit any code.