I have been out of the programming game for a while now and I've tried to implement an old script I created but now have an error saying the eregi() function was removed and it throws an error. How would I re-write this now:
if (empty ($_POST["var"]) || !eregi ("^[0-9]+$", $_POST["var"]))
{
//...