check if the string match in php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}if (strpos($a, 'are') !== false) {
echo 'true';
}
Also in PHP:
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". php 8
- cache laravel docs
- Impossible de trouver le paquet php-gettext
- What is a Regular Expression in php
- console.log from functions php
- add days with dates php
- cahgne date format in php
- How to execute “php artisan migrate” and other Laravel commands in remote server?
- echo fread($myfile,filesize("webdictionary.txt"));
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) {"userId":3,"exception":"[object]
- base64_decode() output to header location
- convert dd/mm/yyyy to yyyy-mm-dd in mysql php
- date time sql format php
- blob image to base64 php
- error enable in php
- datetime::timeformat php
- encode and decode data in php
- declare empty array php
- /laravel-2020-07-27.log" could not be opened
- displayl errors in php
- array key xists
- fetch value from json link in php
- change format date usa month text php
- codeigniter get num_rows