I tried so many preg_replace and preg_match codes but i cant do. I try to find strings contain +18 , 18+ or (+18) I cant explain but you can understand when see my codes.
//inputs
$product='example: 18 kg apple'; // my hope output: EVERYONE
$product='water pipe (18) meters'; // my hope output: EVERYONE
//outputs: OVER 18
$product='product +18 dress'; // my hope output: OVER 18
$product='product 18+ dress'; // my hope output: OVER 18
$product='product (+18) dress'; // my hope output: OVER 18
//outputs are already OVER 18
//Because of contain 18
//not +18 or 18+. it doesnt work truly
preg_match('/\b(\w*18\w*)\b/', $product, $match);
if( $match[1]=='+18' || $match[1]=='18+' ) {
echo "OVER 18<br>";
}
else{
echo "EVERYONE<br>";
}