[DOC-CVS] [doc-en] master: Update json-last-error-msg.xml - json_validate() (#4721)

[email protected] (Juan Morales via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Juan Morales (juan-morales)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2025-06-20T10:30:19+08:00

Commit: https://github.com/php/doc-en/commit/811ad2ca065f6f5b92a911bba9d736e744e4682c
Raw diff: https://github.com/php/doc-en/commit/811ad2ca065f6f5b92a911bba9d736e744e4682c.diff

Update json-last-error-msg.xml - json_validate() (#4721)

Co-authored-by: Niels Dossche <[email protected]>
Co-authored-by: Luffy <[email protected]>

Changed paths:
  M  reference/json/functions/json-last-error-msg.xml


Diff:

diff --git a/reference/json/functions/json-last-error-msg.xml b/reference/json/functions/json-last-error-msg.xml
index ddccc244e6ec..09e774e58c36 100644
--- a/reference/json/functions/json-last-error-msg.xml
+++ b/reference/json/functions/json-last-error-msg.xml
@@ -3,7 +3,7 @@
 <refentry xml:id="function.json-last-error-msg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>json_last_error_msg</refname>
-  <refpurpose>Returns the error string of the last json_encode() or json_decode() call</refpurpose>
+  <refpurpose>Returns the error string of the last json_validate(), json_encode() or json_decode() call</refpurpose>
  </refnamediv>
 
  <refsect1 role="description">
@@ -13,7 +13,7 @@
    <void/>
   </methodsynopsis>
   <para>
-   Returns the error string of the last <function>json_encode</function> or <function>json_decode</function>
+   Returns the error string of the last <function>json_validate</function>, <function>json_encode</function> or <function>json_decode</function>
    call, which did not specify <constant>JSON_THROW_ON_ERROR</constant>.
   </para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.