protected function exportXPath($expr)
	{
		$phpTokens = [];
		foreach ($this->tokenizeXPathForExport($expr) as list($type, $content))
		{
			$methodName  = 'exportXPath' . ucfirst($type);
			$phpTokens[] = $this->$methodName($content);
		}

		return implode('.', $phpTokens);
	}
protected function exportXPath($expr)
	{
		$phpTokens = [];
		foreach ($this->tokenizeXPathForExport($expr) as list($type, $content))
		{
			$methodName  = 'exportXPath' . ucfirst($type);
			$phpTokens[] = $this->$methodName($content);
		}

		return implode('.', $phpTokens);
	}
protected function exportXPath ( $ expr ) { $ phpTokens = [ ] ; foreach ( $ this -> tokenizeXPathForExport ( $ expr ) as list ( $ type , $ content ) ) { $ methodName = 'exportXPath' . ucfirst ( $ type ) ; $ phpTokens [ ] = $ this -> $ methodName ( $ content ) ; } return implode ( '.' , $ phpTokens ) ; }
Export an XPath expression as PHP with special consideration for XPath variables

Will return PHP source representing the XPath expression, with special consideration for XPath
variables which are returned as a method call to XPath::export()

@param  string $expr XPath expression
@return string       PHP representation of the expression
Export an XPath expression as PHP with special consideration for XPath variables