Trying to find variable names from $user array I need to manually pull through user images and and users first name for a comment section, but i cant find what these array items are named, if anybody knows please tell me and or tell me how to find similar information in the future.
The best way to do this is use the devel module.

Once enabled you can use the dpm($variable) function to have it printed out on the screen.

Another (more complex to set up) solution would be to use xdebug and a debugger.