check if part of the string is in other string with space or special caracter php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
Also in PHP:
- convert to capital letters php
- clear cache laravel and composer
- error_reporting(0) php 7
- $dbh = new PDO("mysql:host
- console log with php
- Call to a member function delete() on null laravel 8
- It is possible to perform an HTTPS redirect using PHP code as well as writing PHP code to prevent the browser from caching your we
- 'cross-env' is not recognized as an internal or external command, laravel
- array contains key php
- explode in php
- convert timestamp to date in php
- find a word in string in php
- cache laravel clear
- cache eloquent laravel 8
- console in php
- create 5 rendom charactors in php
- php random string generator
- $_FILES PHP list
- date to string php
- 413 error laravel
- array unique in php using a column
- command line read line by line
- $s = [1,2,3] for loop use in php
- cron run php script