Discussion in 'PHP' started by Phil Vessey, Nov 16, 2007.
Hi I am building a small attachments system and am wanting to search a string for all instances of
if (preg_match('~[attachment]~i', $str)) { run_function(); } PHP: Like this?
if (preg_match('~[attachment]~i', $str)) { run_function(); }
Separate names with a comma.