I consulted a Web Service using the SoapClient
class of PHP
and the __getFunctions()
method to list the services provided by this Web Service .
I get the return below:
Array
(
[0] => ConsultarResponse Consultar(ConsultarRequest $ConsultarRequest)
[1] => ConsultarTipoResponse, ObjResponse ConsultarTipo(ConsultarTipoRequest $ConsultarTipoRequest)
)
How do I parse to get the word that comes before the relatives? The idea would be to ignore everything and take only the occurrence that comes to the left of the relatives.
The return would have to be:
- Constular
- QueryType