[PHP] Help with parsing result code
Hi. 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:00: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? And if also someone knows of a good reference manual on scraping and parsing with PHP, I'd appreciate it. Thx Carlos. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with parsing result code
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:00: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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with parsing result code
http://us2.php.net/manual/en/function.preg-split.php should do it also http://us2.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with parsing result code
Thank you Matt and Ed. I have solved the issue and started looking into parsing and regular expressions. Thx Carlos. On Fri, 15 Oct 2004 10:57:02 -0500, Matt M. [EMAIL PROTECTED] wrote: http://us2.php.net/manual/en/function.preg-split.php should do it also http://us2.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php