protected function tokenizeXPathForExport($expr)
	{
		$tokens = [];
		foreach ($this->matchXPathForExport($expr) as $match)
		{
			foreach (array_reverse($match) as $k => $v)
			{
				// Use the last non-numeric match
				if (!is_numeric($k))
				{
					$tokens[] = [$k, $v];
					break;
				}
			}
		}

		return $tokens;
	}
protected function tokenizeXPathForExport($expr)
	{
		$tokens = [];
		foreach ($this->matchXPathForExport($expr) as $match)
		{
			foreach (array_reverse($match) as $k => $v)
			{
				// Use the last non-numeric match
				if (!is_numeric($k))
				{
					$tokens[] = [$k, $v];
					break;
				}
			}
		}

		return $tokens;
	}
protected function tokenizeXPathForExport ( $ expr ) { $ tokens = [ ] ; foreach ( $ this -> matchXPathForExport ( $ expr ) as $ match ) { foreach ( array_reverse ( $ match ) as $ k => $ v ) { // Use the last non-numeric match if ( ! is_numeric ( $ k ) ) { $ tokens [ ] = [ $ k , $ v ] ; break ; } } } return $ tokens ; }
Tokenize an XPath expression for use in PHP

@param  string $expr XPath expression
@return array
Tokenize an XPath expression for use in PHP