check if string like string
$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:
- console log with php on form sent
- array_unique multidimensional php
- actual date php
- convert date to times php
- error showing in php
- How do you clear cache in Laravel?
- create a project in laravel
- date() php -1heure?
- add 1 day current fasy php
- #2 - One To Many relationship - hasMany() - Laravel Eloquent Relationships
- echo in php console log
- drupal 8 enable twig debug
- error reporting in php means
- create array and remove duplicates php
- array_unique in php
- file form validation codeigniter
- fget length of string php
- catch custom exception php
- add days and time to date php
- $this->throwError php
- @lang laravel blade
- convert object to array php
- display success message after form submit laravel
- artisan show routes