check if string contains only one word
$a = 'Hello world?';
if (strpos($a, 'Hello') !== false) { //PAY ATTENTION TO !==, not !=
echo 'true';
}
if (stripos($a, 'HELLO') !== false) { //Case insensitive
echo 'true';
}
Also in PHP:
- edit data using modal php
- +1 day in while php
- date u 1 day php
- check if text is in string php
- array_merge() does not accept unknown named parameters laravel
- check string is present in php
- Clear cache from code Laravel
- command to install laravel 7
- - phpunit/phpunit[8.5.0, ..., 8.5.x-dev] require ext-dom * ->
- 71 - Specified key was too long; max key length is 767 bytes
- check if string contain word
- date and time php formated
- define header in php
- fetch last inserted data with record in php codeingniter
- create a php live chat without no load
- convert date to another format php
- Connect to SQL in a php PDO and print the data in it
- Create image data URIs (base64) using PHP Raw
- create a project in laravel
- date php D
- $heure = date('H'); php 5
- can we find like directorries in php
- find characters in word php
- call a seeder in databaseseeder laravel