How would I be able to grab the users screen-size or browser resolution (width only) when viewing my webpage, preferably with javaScript/jQuery or PHP and output the results?
window.innerWidth
will get you the browser width.
screen.width
will get you the monitor's resolution.
Here's an example: http://jsbin.com/abomod/1/edit