On your WordPress site, the main job of PHP is to fetch page content stored in your WordPress database and turn it into web pages. Upon receiving a request for a page, the PHP code pulls relevant page content from your WordPress database, converts it into an HTML file (and accompanying CSS files), and sends the HTML back to the visitor who made the request.