contains in 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';
}$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
Also in PHP:
- create DateTime from timestamp php
- Customizing The Validation Attributes
- disable registration laravel
- date convert timestamp to date php
- custom widget area wordpress
- carbon now
- captial functuon php
- calculate time difference php
- 500 server error laravel 7
- convert string to caps in php
- datetime in php
- error_log wordpress
- In php how to check the contains in the string
- create a seed laravel
- 0 and 1 toggle php 7
- create new laravel project
- debian install apache php
- codeigniter sms send
- error_reporting e_all
- cakephp extract array
- base64 to image php
- check if array has index php
- create model, controller and migration in single command laravel
- end session variable php