Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. json_decode() returns blank but it's valid json
  2. $a = '[{"function":"error_handler","class":"LP","type":"::","args":[256,"Call to undefined method LP_pdo::get_rorzxx() on D:\MARK\htdocs\lessphptest\application\controllers\users.php (23)","D:\MARK\htdocs\lessphp\LP.php",210,{"e":{"type":1,"message":"Call to undefined method LP_pdo::get_rorzxx()","file":"D:\MARK\htdocs\lessphptest\application\controllers\users.php","line":23}}]},{"file":"D:\MARK\htdocs\lessphp\LP.php","line":210,"function":"trigger_error","args":["Call to undefined method LP_pdo::get_rorzxx() on D:\MARK\htdocs\lessphptest\application\controllers\users.php (23)",256]},{"function":"shutdown","class":"LP","type":"::","args":[]}]';
  3. $a = json_decode($a);
  4. print_r($a);
  5.  
  6. echo json_last_error();