gmp_kronecker()

The gmp_kronecker() function can be used to calculate the Kronecker symbol:

var_dump(gmp_kronecker(23, 12));

Executing the code shown above will print the output shown below:

int(-1)