array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.json-last-error-msg.php', 1 => 'json_last_error_msg', 2 => 'Returns the error string of the last json_validate(), json_encode() or json_decode() call', ), 'up' => array ( 0 => 'ref.json.php', 1 => 'Функції JSON', ), 'prev' => array ( 0 => 'function.json-last-error.php', 1 => 'json_last_error', ), 'next' => array ( 0 => 'function.json-validate.php', 1 => 'json_validate', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/json/functions/json-last-error-msg.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

json_last_error_msg

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

json_last_error_msgReturns the error string of the last json_validate(), json_encode() or json_decode() call

Опис

json_last_error_msg(): string

Returns the error string of the last json_validate(), json_encode() or json_decode() call, which did not specify JSON_THROW_ON_ERROR.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the error message on success, or "No error" if no error has occurred.

Прогляньте також