How to fetch / extract data using CURL in PHP?