check if user is on mobile php
function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
Also in PHP:
- C# http post request with file
- check if line contains string php
- explode in php
- check a word in a string
- How to check if fwrite failed php
- am pm in php
- create controller in laravel command line
- Carbon\Carbon::today()->format('Y-m-d') in blade
- array key exi
- count length of string php
- check the php version used by composer
- all capital in php
- create dir php
- 2 = null laravel
- check if substring in php
- check if someone right click javascript
- check if substr in string php
- DATE_FORMAT(STR_TO_DATE
- check_string_lenght in php
- exceptional handling in php
- check string appear in string php
- F d php
- convert space to 20 php
- check gettype is string php