title: Detect network connection 2g,3g,4g,wifi using php
body: <p>My web application having feature for live audio streaming.i would like to know if there is any way to detect the network(<code>2G</code>, <code>3G</code>, <code>4G</code> or <code>wifi</code>) on which user has accessing the web on their devices.</p>
  
  <p>I've searched high and low but unable to find any scripts or instructions on how to get user network <code>2G</code>,<code>3G</code>,<code>4G</code> or <code>wifi</code>.</p>