check string contains 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:
- call seeders database seeder laravel
- date('I')
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) composer
- filename php
- choose a random word from an array php
- call to undefined function mysql_connect()
- codeigniter db insert return id
- echo iterate array php
- base64 image encode php
- Y-m-dTH:
- check if first element of arraay has key laravel php
- check is string contains
- db seed in controller
- check array for duplicates php
- end session variable php
- encode string to base64 php
- change time format in php
- cache DB table laravel
- Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- disable register route laravel
- echo errors of php
- echo getType($value)
- Check password match laravel
- How to read a entire file in one line PHP script a. file_content() b. fgetc() c. read_file() d. get_file_contents()