You are here

function nusoap_base::getLocalPart in Salesforce Suite 5.2

Same name in this branch
  1. 5.2 includes/nusoap.php \nusoap_base::getLocalPart()
  2. 5.2 includes/nusoap.orig.php \nusoap_base::getLocalPart()
Same name and namespace in other branches
  1. 5 includes/nusoap.php \nusoap_base::getLocalPart()
  2. 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.orig.php, line 722

Class

nusoap_base
nusoap_base

Code

function getLocalPart($str) {
  if ($sstr = strrchr($str, ':')) {

    // get unqualified name
    return substr($sstr, 1);
  }
  else {
    return $str;
  }
}