1 2 3 4 5 6 7 8 9 10 |
$mixedStr = "hello world. This is john duvey"; $searchStr= "john"; if(strpos($mixedStr,$searchStr)) { echo "Your string here"; }else { echo "String not here"; } |

1 2 3 4 5 6 7 8 9 10 |
$mixedStr = "hello world. This is john duvey"; $searchStr= "john"; if(strpos($mixedStr,$searchStr)) { echo "Your string here"; }else { echo "String not here"; } |
© 2022 CODEHAVEN