$school_name = (!empty($_POST['school_name'])) ? $_POST['school_name'] : NULL;

$school_name = FilterALLHTML($school_name);

Is there a way to combine the to above into 1 line?

Imagine I have 50 varibales assigned by this method on a page

$school_name = (!empty($_POST['school_name'])) ? $_POST['school_name'] : NULL;

Now to run FilterALLHTML function on them I would have to add another 50 lines

    [man]array_map[/man] might be what you're looking for.

      Write a Reply...