I know this may be a silly question, but I come across a snippet of php code that check if the $_POST is_array() before execute other functions.
$_POST
is_array()
That check is unnecessary. $_POST is a superglobal array which is always defined. You should just check for specific elements using isset
isset