Skip to content

Commit c938838

Browse files
Fix Example #4 of filter_var (#4252)
1 parent d553fa3 commit c938838

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/filter/functions/filter-var.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,16 @@ bool(false)
170170

171171
<example>
172172
<title>Providing flags either directly or via an <type>array</type></title>
173-
<programlisting>
173+
<programlisting role="php">
174174
<![CDATA[
175+
<?php
175176
176177
$str = 'string';
177178
178179
var_dump(filter_var($str, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE));
179180
var_dump(filter_var($str, FILTER_VALIDATE_BOOLEAN, ['flags' => FILTER_NULL_ON_FAILURE]));
180181
182+
?>
181183
]]>
182184
</programlisting>
183185
&example.outputs;

0 commit comments

Comments
 (0)