check contain word php
$a = 'Hello world?';
if (strpos($a, 'Hello') !== false) { //PAY ATTENTION TO !==, not !=
echo 'true';
}
if (stripos($a, 'HELLO') !== false) { //Case insensitive
echo 'true';
}$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
Also in PHP:
- date input n php
- PHP Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /var/www/html/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
- "array_key_exists(): + file array laravel
- echo console.log
- create project with laravel
- clear route cache laravel
- date time long format php
- ->count_all_results() in code igniter
- check for a letter in a string php
- Method Illuminate\Database\Eloquent\Collection
- error reporting 0
- current date and time php
- check string length php
- error_reporting e_all
- array reverce php
- does string contain character php
- domain only request php
- error code php
- date php formating
- filter_var filter_validate_url
- date(Y m d)
- authenticate user with phone laravel
- Reading a Tree of Files and Folders in php
- console.log php variable