check if a string contains a word in 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:
- ata date format in php
- 12th December 2020 date format in php
- centos 7 install php composer
- display all php erros
- PHP @ errors
- add one day in date php
- displayl errors in php
- clear laravel cache and clear vue
- codeigniter get num_rows
- SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- c date format php
- consolelog is it a thing in php
- Fatal error: Allowed memory size of 1073741824 bytes exhausted (trie
- clave generator php
- composer global laravel
- filter_var filter_validate_url
- adjacent post sort order by post title
- echo ternary php
- error reporting php
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) {"userId":3,"exception":"[object]
- array key contains php
- array shift php
- composer what to do get created laravel new project
- date'G')