title: How do I determine whether it's a mobile device with PHP?
body: <p>I am writing a website with PHP. Since it will need to be accessed by anyone on the network to access the internet I have to create a mobile version. How do I best check if it's a mobile device? I don't want to have a switch statement with 50 devices at the end since I don't only want to support the iPhone.</p>
  
  <p>Is there a PHP class I could use?</p>