checking if a string contains a certain word
$a = 'Hello world?';
if (strpos($a, 'Hello') !== false) { //PAY ATTENTION TO !==, not !=
echo 'true';
}
if (stripos($a, 'HELLO') !== false) { //Case insensitive
echo 'true';
}
Also in PHP:
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5" laravel
- check string for value php
- check is string contains
- consol log php
- display errr php
- check result statusCode amazon sms api
- base 64 decode p[hp
- chacke if string contains word php
- call to undefined function mysql_connect()
- error uncaught even in try catch php
- cech error in php
- catch (Exception $e)
- find current date in php
- call a seeder in databaseseeder laravel
- +1 day in date php
- artisan create seeder
- change time format in php
- angular null check in template
- disable register route laravel
- $this->throwError php
- array_push
- find client ip in php
- check if string contains only whitespace php
- create seeder in laravel