<?php $host = "https://chat.stackoverflow.com/rooms/11/php/"; $currentDomain = preg_replace('(^.+\.(?=[^.]+\.[^.]+$))', $host); echo $currentDomain;
You have javascript disabled. You will not be able to edit any code.