QuickBooks/WebConnector/Handlers.php
protected function _extractStatusCode($xml)
	{
		if (false !== ($start = strpos($xml, ' statusCode="')) and
			false !== ($end = strpos($xml, '"', $start + 13)))
		{
			return substr($xml, $start + 13, $end - $start - 13);
		}

		return QUICKBOOKS_ERROR_OK;
	}
protected function _extractStatusCode($xml)
	{
		if (false !== ($start = strpos($xml, ' statusCode="')) and
			false !== ($end = strpos($xml, '"', $start + 13)))
		{
			return substr($xml, $start + 13, $end - $start - 13);
		}

		return QUICKBOOKS_ERROR_OK;
	}
Extract the status code from an XML response

Each qbXML response should return a status code and a status message
indicating whether or not an error occured.

@param string $xml	The XML stream to look for a response status code in
@return integer		The response status code (0 if OK, another positive integer if an error occured)