chacke if string contains word php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}// returns true if $needle is a substring of $haystack
function contains($haystack, $needle){
return strpos($haystack, $needle) !== false;
}
Also in PHP:
- base64_decode image string php
- curl multi exec
- <?php trim($_POST["data"]); ?>
- do_shortcode not working
- check if something is on a string php
- afiseaza id-ul sesiunii php
- Multi-idiomas com PHP
- check type in laravel
- create new projec in laravel
- 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
- check of string is present in string using php
- 'php' is not recognized as an internal or external command, operable program or batch file.
- displaying current date in php
- catch an exception within a catch block php
- 4random numbers php
- clear cache config laravel
- detecting right click on windows
- capital letter php
- Builder::unique() laravel
- ata date format in php
- exclude php
- display date format in php
- exception class list for all server error in laravel
- List of php frameworks