Answers for "return the string that has not being exist in string php"

PHP
8

check if text exists in string php

$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}
Posted by: Guest on October-18-2020
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 "return the string that has not being exist in string php"

Browse Popular Code Answers by Language