php check if string contains
$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:
- check php version
- extract data from api callback php
- adding spasifc date to date('Y-m-d H:i:s') php
- cambiar entre versiones de php linux
- TEXT UPPER PHP
- $this- attribute laravel
- base64 file php
- console log inphp
- create laravel project in laravel/laravel
- debug native php
- array_reverse in php
- Add the file php
- data type checking php
- enable errors in php
- check an string incudes a string php
- array length php
- array should not be empty php
- check key in array php
- display errors off php
- adding days to time value in php
- current time input field in laravel form
- add days with dates php
- check if string in string php
- clear cahce laravel