hi all
I am integrating a site with a payment service provider and need help on the following.
Within my payment class, I have a function which executes some curl based on a response from the PSP server and that response is a long string with each field separated by a pipe symbol (|). What I would like is to get this response into an array so I can continue and maniulate data accordingly.
Normally I would use explode() but I cant get it to work correctly. I have seen this (below) which might help me but i cant get this to work either:
// $this->response contains my string...
$this->response = split(chr(10),curl_exec ($curlSession));
$arrcount = count($this->response);
Any advice please?
I haven't got a clue what ascii value a pipe is either!!
Thanks in advance