In simple terms, take this function:
If I execute this function without any of the parameters, which as you can see don't have default values, PHP will throw an error at me--but continue to execute the script.PHP Code:function my_function($foo, $stuff)
{
echo 'good';
}
How can I change this behavior to have PHP kill the script?
Yes, I could add into the function something like:
But.. I'm sure there is a PHP environment setting or the like to control it.PHP Code:if (!$foo || !$stuff)
{
exit;
}
Thanks in advance if you can help.![]()





Bookmarks