check if string contain word
$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:
- catch an exception within a catch block php
- "Illuminate\Database\Eloquent\MassAssignmentException"
- Allowed memory size of 1610612736 bytes exhausted php on mac
- find a word in srting php
- create path php
- db::statement in laravel
- array exist php
- exception handling in php with example
- count characters in string php
- array_key_exists javascript
- There is no extension able to load the configuration for "_translation_webui"
- clear all laravel caches
- disadvantages of php
- create seed in laravel
- create a php live chat without no load
- codeigniter db insert return id
- List of php frameworks
- console() php
- advance custon feilds
- Target class [Barryvdh\Cors\HandleCors] does not exist.
- bootswatch import theme into laravell vuejs
- array php missing key
- create symfony project
- Clear cache from code Laravel