check sting contsin sub sting 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';
}$result = strpos("haystack", "needle");
if ($result != false)
{
// text found
}
Also in PHP:
- SSL operation failed with code 1. OpenSSL Error messages: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
- erreur php
- Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 18874368 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Repository/ComposerRepository.php on line 588
- condition for both of one should be true laravel eloquent
- base64 decode encode online php
- date() php getting out
- check composer using php version
- console rint in php method
- check chartercount in php
- How to create and access angular HTTP params in PHP
- Warning: func_get_arg() expects exactly 1 parameter, 0 given in
- datetimepicker format php
- 500 server error heroku laravel
- 500 (internal server error) laravel
- array_unique trong php
- Extract images from a folder in php
- add on day to date php
- <?php include localhost:8080/index.php?>
- create a seed laravel
- check index type in php
- acf auto increment field
- close connection pdo
- create random set of strings PHP
- changing a part of a string into uppercase php