I have an array (for example, such). The structure is unknown to me, I only know that the array consists of the nth number of rows.
Array ( [workers] => Array ( [worker1] => "John" [worker2] => "Matthew" [worker3] => "Andrew" ) ) The task is to filter the lines. For example, I can do this - 'first_name' => filter_input( INPUT_POST, 'first_name', FILTER_SANITIZE_STRING ) for a string (one single!). This will not drive to the array. I can use filter_input_array, but then $ args will have to describe each line and what to apply to it (which filter). And if there are n lines of such lines, which I cannot track?