I answered this question 3 days ago. The asker is looking for a way to get all the
CityIds in a site called
ghix.com. Maybe he wants to crawl it. It's okay to crawl it. But I don't think the main question (find city ids) does not relate to any of the tags (php, html, string, loops, curl). Even this site doesn't provide any API. If it was we could have analyzed and answer it. The question is not related to any programming at all.
My question is are these type of questions allowed at Stackoverflow?