function nusoap_base::getPrefix in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \nusoap_base::getPrefix()
- 5 includes/nusoap.orig.php \nusoap_base::getPrefix()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \nusoap_base::getPrefix()
- 5.2 includes/nusoap.orig.php \nusoap_base::getPrefix()
returns the prefix part of a prefixed string returns false, if not prefixed
@access public
Parameters
string $str The prefixed string:
Return value
mixed The prefix or false if there is no prefix
File
- includes/
nusoap.orig.php, line 739
Class
- nusoap_base
- nusoap_base
Code
function getPrefix($str) {
if ($pos = strrpos($str, ':')) {
// get prefix
return substr($str, 0, $pos);
}
return false;
}