@@ -97,13 +97,37 @@ such as debugging and translating content.
9797
9898.. php :function :: debug(mixed $var, boolean $showHtml = null, $showFrom = true)
9999
100+ .. versionadded :: 3.3.0
101+ Calling this method will return passed ``$var ``, so that you can, for instance,
102+ place it in return statements.
103+
100104 If the core ``$debug `` variable is ``true ``, ``$var `` is printed out.
101105 If ``$showHTML `` is ``true `` or left as ``null ``, the data is rendered to be
102106 browser-friendly.
103107 If ``$showFrom `` is not set to ``false ``, the debug output will start with the line from
104108 which it was called.
105109 Also see :doc: `/development/debugging `
106110
111+ .. php :function :: pr(mixed $var)
112+
113+ .. versionadded :: 3.3.0
114+ Calling this method will return passed ``$var ``, so that you can, for instance,
115+ place it in return statements.
116+
117+ Convenience wrapper for ``print_r() ``, with the addition of
118+ wrapping ``<pre> `` tags around the output.
119+
120+ .. php :function :: pj(mixed $var)
121+
122+ .. versionadded :: 3.3.0
123+ Calling this method will return passed ``$var ``, so that you can, for instance,
124+ place it in return statements.
125+
126+ JSON pretty print convenience function, with the addition of
127+ wrapping ``<pre> `` tags around the output.
128+
129+ It is meant for debugging the JSON representation of objects and arrays.
130+
107131.. php :function :: env(string $key, string $default = null)
108132
109133 .. versionadded :: 3.1.1
@@ -135,18 +159,6 @@ such as debugging and translating content.
135159
136160 Commonly used like ``list($namespace, $className) = namespaceSplit('Cake\Core\App'); ``
137161
138- .. php :function :: pr(mixed $var)
139-
140- Convenience wrapper for ``print_r() ``, with the addition of
141- wrapping ``<pre> `` tags around the output.
142-
143- .. php :function :: pj(mixed $var)
144-
145- JSON pretty print convenience function, with the addition of
146- wrapping ``<pre> `` tags around the output.
147-
148- It is meant for debugging the JSON representation of objects and arrays.
149-
150162Core Definition Constants
151163=========================
152164
0 commit comments