function nusoap_base::getLocalPart in Salesforce Suite 5.2
Same name in this branch
- 5.2 includes/nusoap.php \nusoap_base::getLocalPart()
- 5.2 includes/nusoap.orig.php \nusoap_base::getLocalPart()
Same name and namespace in other branches
- 5 includes/nusoap.php \nusoap_base::getLocalPart()
- 5 includes/nusoap.orig.php \nusoap_base::getLocalPart()
returns the local part of a prefixed string returns the original string, if not prefixed
@access public
Parameters
string $str The prefixed string:
Return value
string The local part
File
- includes/
nusoap.php, line 727
Class
- nusoap_base
- nusoap_base
Code
function getLocalPart($str) {
if ($sstr = strrchr($str, ':')) {
// get unqualified name
return substr($sstr, 1);
}
else {
return $str;
}
}