It’s very simple to do, but it won’t be any good as a long-term strategy.
Google will see all of those pages as duplicate content. They are the same apart from a place name, and Google is getting smarter all the time.
Now, as for how to do it… It’s just a query string. Notice this in the URL?
website-design.php?WebsiteDesign=City
The query string parameter for WebsiteDesign is what does it. In the example above The city name is jsut taken from that URL value. For a bit of fun, try this…
https://www.shalesh.co.za/website_design/website-design.php?WebsiteDesign=That%20Sucks ??
Then you just need to use $_GET[‘WebsiteDesign’] to output the value. That’s all there is to it.