Re: Help with parsing result code
| From: | Matt M. | Date: | Fri, 15 Oct 2004 15:53:43 +0000 |
| Subject: | Re: Help with parsing result code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199605@lists.php.net to get a copy of this message | ||
> I'm setting up a credit card payment app. When I send the information
> through the form I get a result similar to this:
>
> NOT CAPTURED:000000:428930479495:NA:1015:9755676331042890:1:1::::
>
> This is the only data in the result page.
>
> I have never done parsing, and I have no idea of how to get this
> information inerted into variables.
>
> The result data is a series of data separated by ':'
>
> Could anyone please give me a hint as of where to look for information
> on how to do the parsing, or a short sample script?
http://us2.php.net/manual/en/function.preg-split.php
should do it