title: How do you detect a mobile device with PHP?
body: <p>I'm looking for the best method/practice to use for detecting if a person is using a mobile device to view a website. I'd like to be able to adjust the templates of the website if a mobile device is detected so it's easier to view.</p>
  
  <p>What is the most reliable and effective method for detecting mobile devices?</p>