I think that for such a task there will be quite a simple thing, like determining the width of the screen, and the retina displays so many pixels in width that a simple check will immediately tell you whether a regular display or retina will be displayed. PHP does not have this feature out of the box, but Javascript does.
Here's how:
<script language="Javascript">
</script>
source
share