<?php $current_url = 'current.sub.meh.com'; $stage_url = 'foo.stage.it'; $current_sub_domain = strtok( $current_url, '.' ); $stage_url = "{$current_sub_domain}.{$stage_url}"; echo $stage_url;
You have javascript disabled. You will not be able to edit any code.