Php Get Subdomain

[Solved] Php Get Subdomain | Php - Code Explorer | yomemimo.com
Question : php get subdomain

Answered by : portapipe

$subdomain = explode('.', $_SERVER['HTTP_HOST'])[0];

Source : | Last Update : Wed, 16 Mar 22

Answers related to php get subdomain

Code Explorer Popular Question For Php