Answers for "exists in string php"

PHP
0

check exist string in string php

$myString = 'Hello Learn Tech Tips (Zidane)?';
if (strpos($myString, 'Zidane') !== false) {
    echo "This string contains Zidane";
}
Posted by: Guest on November-04-2021
0

if exists in string php

if (strpos($search, ' -') !== false) {
  echo 'There is exclude pattern "-" in search expression';
}
Posted by: Guest on March-02-2022

Code answers related to "exists in string php"

Browse Popular Code Answers by Language