- var_dump: documentation ( source)
- parse_url: documentation ( source)
<?php
$urlParts = (parse_url('http://213.34.94.142:8080/WebService_Live/service.php?wsdl'));
$url = http_build_url([
'scheme' => $urlParts['scheme'],
'host' => $urlParts['host'],
'path' => $urlParts['path']
]);
var_dump($url);