check if a string has a certain character 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:
- TRY CAT in php
- catch in php
- count string length in php
- error_reporting php debug
- check an string incudes a string php
- download laravel project
- convert small to capital in php
- composer laravel install
- check composer using php version
- creating a new project with laravel
- check if a string contains specific characters in php
- check length of a variable php
- date format in php for AM PM
- cancel stripe subscription php
- check if string contain word
- check variable data type with value in php
- change readble date format in php
- Date() in php
- export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH
- date show year first php
- Laravel Blade Foreach If Empty or Not
- run php artisan cache:clear
- fetch data from phpmyadmin
- count charcter in php