So many challenges you can face during developing a project. I was working on a project with a video at home page and I didn’t want the video to be load on mobile devices. So i needed a logic to detect mobile devices in php.

Here is the code that i followed to get it work. You can make your own logic to modify it.

 

Leave a Reply