diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 7b652460a18..f62d86048fd 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -15867,6 +15867,10 @@ table2-mapping
        
         json_array_length('[1,2,3,{"f1":1,"f2":[5,6]},4]')
         5
+       
+       
+        jsonb_array_length('[]')
+        0
        
       
 
@@ -19238,10 +19242,19 @@ SELECT NULLIF(value, '(none)') ...
        
        
         Returns the length of the requested array dimension.
+        (Produces NULL instead of 0 for empty or missing array dimensions.)
        
        
         array_length(array[1,2,3], 1)
         3
+       
+       
+        array_length(array[]::int[], 1)
+        NULL
+       
+       
+        array_length(array['text'], 2)
+        NULL