# `gmp_kronecker()`

> Section in “New and Extended Functionality › Mathematics” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/mathematics/gmp_kronecker/>

The `gmp_kronecker()` function can be used to calculate the [Kronecker symbol](https://en.wikipedia.org/wiki/Kronecker_symbol):

``` php
var_dump(gmp_kronecker(23, 12));
```

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

    int(-1)

---

Previous: [gmp_binomial()](https://php7explained.com/new-and-extended-functionality/mathematics/gmp_binomial/index.html.md) | Next: [gmp_lcm()](https://php7explained.com/new-and-extended-functionality/mathematics/gmp_lcm/index.html.md)
