Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get subdomain

$subdomain = explode('.', $_SERVER['HTTP_HOST'])[0];
 
PREVIOUS NEXT
Tagged: #php #subdomain
ADD COMMENT
Topic
Name
7+9 =