find specific word in string 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:
- check for a key in array + php
- - phpunit/phpunit[8.5.0, ..., 8.5.x-dev] require ext-dom * ->
- base64 php encode decode
- create model controller migration factory laravel in one command
- Laravel 8 seed
- file_get_contents(): SSL: The operation completed successfully but file_get_contents(http://www.b2bsoftwareking.com): failed to open stream: No connection could be made because the target machine actively refused it. in
- add code return block phpstorm
- Laravel Mix npm run production error
- 4random numbers php
- ata date format in php
- Authorization header (API Key) is missing" }in guzzle
- clear cache in laravel without artisan
- decode base64 php
- codeigniter db insert return id
- How to get the current time in PHP if
- General error: 1215 Cannot add foreign key constraint laravel
- array_key_exists(
- die php prnint error
- How do I check if a string contains a specific word php
- error e all php
- convert a value to a float in php
- allert in php
- carbon compare same date
- conole.log in php