check if string has symbol php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);if (preg_match('/[A-Za-z]/', $myString) && preg_match('/[0-9]/', $myString))
{
echo 'Contains at least one letter and one number';
}
Also in PHP:
- date format php date format)
- element has key in an array
- count php string
- 2 = null laravel
- cookie phpsessid will be soon treated as cross-site cookie against
- Object of class Illuminate\\Database\\Eloquent\\Builder could not be converted to string
- array with files content in a folder
- add to hours to variable date php
- create new laravel project 8
- ->format() php
- check if string contains substring php
- display date format in php
- add php var to js console log
- add column in laravel migration
- convert space to 20 php
- console log php
- Fatal error: Uncaught ReflectionException: Class config does not exist in
- date time to timestamp php
- echo in json format
- decode base64 with key php
- ALTER table migrations laravel
- check version composer
- date time H:i:s in php
- contains php string