check if substring matches another string 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:
- clearn route cacje laravel
- consolelog php response
- PHPMailer
- delay in php
- clear config cache laravel
- array key search php
- fetch body show in php code
- creat laravel project
- aws sdk php
- can't see php7 in my mac
- clear cache artisan laravel
- collection methods laravel
- alert laravel 7
- clear cache laravel 6
- autoload php multiple spl_autoload_register
- Tto upper php
- array key exists function in php
- create a function that checks the values of the indexes in two arrays and keep a score
- composer and php version
- array ket exists
- can we use a header function to redirect the user to another page
- Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- <?php echo do_shortcode(' '); ?> with variable
- exec output php