3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [ 'rows' => [ [ 'a' => 'A', 'b' => 'B', 'c' => 'C', ], [ 'a' => 'A', 'b' => 'B', 'c' => 'C', ], 'XYZ' ], ]; print_r( filter_var_array($data, ['rows' => [ 'filter' => FILTER_FORCE_ARRAY, 'flags' => FILTER_FORCE_ARRAY ] ]) );
based on 21HTa
Output for 5.6.0 - 7.3.0alpha1
Array ( [rows] => Array ( [0] => Array ( [a] => A [b] => B [c] => C ) [1] => Array ( [a] => A [b] => B [c] => C ) [2] => XYZ ) )