Added php file for readability
Better explanantion