You are here

function nusoap_base::getPrefix in Salesforce Suite 5.2

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

Class

nusoap_base
nusoap_base

Code

function getPrefix($str) {
  if ($pos = strrpos($str, ':')) {

    // get prefix
    return substr($str, 0, $pos);
  }
  return false;
}