- substr: documentation ( source)
- strpos: documentation ( source)
- strchr: documentation ( source)
<?php
$text = 'Content-Type: text/xml';
print substr($text, strchr($text, ':'));
print substr($text, strchr($text, ':') + 1);
print substr($text, strpos($text, ':') + 1);
print substr($text, strpos($text, ':') + 2);
print substr($text, 0, strchr($text, ':'));