check if string contains certain word
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
Also in PHP:
- array distint php
- echo err in php
- PHP get access url
- array index exist php
- Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
- array_push php
- check if there is string in string php
- array_key_exists vs isset
- FT_USER
- creat folder in php
- date php day of wekk
- array hass a key in php
- convert php time()
- check if a string contains a string php
- add item to array in php
- buddypress author link
- char exists in string php
- encode and decode data in php
- add header image to woocomerce shop page
- create new directory php
- To find out where your php.ini is located
- debug bar laravel print array
- cacert.pem file_get_contents openssl
- Exception.php