check if string has a string php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}if (strpos($string, 'substring') !== false) {
// do stuff
}
Also in PHP:
- How to change add to cart button in wordpress
- CONTAIN PHP
- datephp
- curent date and time php
- disable errors in php
- PackageManifest.php line 131: Undefined index: name
- ReflectionException: Class Magento\Framework\App\Http\Interceptor does not exist in
- base64 encode and decode in php
- file to base64
- array_search in php
- check if contains ph
- PHP debug console print
- all php error report
- data type check in php
- Y-m-d H:i:s O format
- disable admin bar wordpress
- check if someone right click javascript
- PHP text string contains character
- error text encode php json
- check if string has a string php
- clear cache php artisan
- activity log spatie
- date to string php
- check if char exists in string php