check if a word exist in a string 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:
- display error php
- create table modal and seeder at once in laravel
- laravel::all()->distinct()->get();
- compress video file size php
- date time H:i:s in php
- cleare chace laravel
- error reportin gall in php
- check fo rtype of input php
- alow error reportng php
- composer with specific php version
- add day to php date
- date('r') php
- checking php version
- add days php
- alert a php variable
- exceptional handling in php
- echo date in php
- array deduplicate in php
- display picture in pdf generated with laravel
- Undefined offset: 0 at laravel\framework\src\Illuminate\Routing\Router.php
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52"
- check version composer
- error_reporting e_all & e_notice not working
- create model controller migration factory laravel in one command