mardi 21 juillet 2020

PHP: Get hostname of external website by URL (determine if the hostname includes 'www')

Given I have an URL to an external website like `https://www.test.com' or 'https://test.com', but I'm not sure if the hostname of the external website actually includes 'www' or not. How can I determine this using PHP?




Aucun commentaire:

Enregistrer un commentaire