<?php $host_config = 'somehost:8080'; list($host, $port) = explode(':', $host_config, 2); // $host == somehost // $port == 8080 var_dump($host, $port);
You have javascript disabled. You will not be able to edit any code.