if (function_exists('json_decode')) { $form = ini_get('magic_quotes_gpc') == 1 ? stripslashes( $_POST['form'] ) : $_POST['form']; $obj=json_decode($form); echo $obj->{'day'} ; }