View Single Post
  #1  
Old 31st October 2011, 19:06
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default PHP check the response of the api

Hi, I am trying to check that if the response of the api contains something like

PHP Code:
<error>
<
message>No Videos found!</message>
<
code>####</code>
</error
To do a show_error() in codeigniter. I've tried it with preg_match but no success for me. Any help would be greatly appreciated.
Reply With Quote
Sponsored Links