$acc * gmp_sign($current), 1); } echo 'The sign of the product is ' . sign_of_product(array_slice($argv, 1));