News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SpinDrop.us:
Parsing a list of KeyValue pairs
February 27, 2007 @ 09:33:00

Dave Dash has posted a quick script to help with an integration of openID into your application - well, really just to read the response back easily.

I'm working on implementing openID for reviewsby.us and for use in symfony apps. One thing I was having trouble with was parsing key value pairs, which is one of the requirements to reading responses. It's a fairly easy task, but [PHP][] offers so many ways to do this.

He notes the spec for how the results are returned and shares his code (based around a regular expression) that goes through the response and separates things out into key/value pairs automatically.

0 comments voice your opinion now!
openid response split parse information keyvalue openid response split parse information keyvalue


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: SourceForge Uses Zend Framework to Implement OpenID

Pádraic Brady's Blog: OpenID for PEAR: Services_Yadis proposed

Evert Pot's Blog: Integrating with Zend's OpenID

SpinDrop.us: Parsing a list of Key:Value pairs

David Sklar\'s Blog: Speed - DOM traversal vs. XPath in PHP 5


Community Events

Don't see your event here?
Let us know!


video unittest community podcast introduction laravel voicesoftheelephpant laravel5 release series interview opinion extension library framework api version language php7 security

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework