recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
These functions allow you to work with arbitrary-length integers using the GNU MP library.
These functions have been added in PHP 4.0.4.
Note: Most GMP functions accept GMP number arguments, defined as resource below. However, most of these functions will also accept numeric and string arguments, given that it is possible to convert the latter to a number. Also, if there is a faster function that can operate on integer arguments, it would be used instead of the slower function when the supplied arguments are integers. This is done transparently, so the bottom line is that you can use integers in every function that expects GMP number. See also the gmp_init() function.
| Warning |
If you want to explicitly specify a large integer, specify it as a string. If you don't do that, PHP will interpret the integer-literal first, possibly resulting in loss of precision, even before GMP comes into play. |
Note: This extension is available on Windows platforms since PHP 5.1.0.
You can download the GMP library from http://www.swox.com/gmp/. This site also has the GMP manual available.
You will need GMP version 2 or better to use these functions. Some functions may require more recent version of the GMP library.
In order to have these functions available, you must compile PHP with
GMP support by using the --with-gmp option.
This extension has no configuration directives defined in php.ini.
Most GPM functions operate on or return GMP number resources.
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
More mathematical functions can be found in the sections BCMath Arbitrary Precision Mathematics Functions and Mathematical Functions.
Another Useful functions:
ref.gmp | function.gmp-xor | function.gmp-sub | function.gmp-strval | function.gmp-sqrtrem | function.gmp-sqrt | function.gmp-sign | function.gmp-setbit | function.gmp-scan1 | function.gmp-scan0 | function.gmp-random | function.gmp-prob-prime | function.gmp-powm | function.gmp-pow | function.gmp-popcount | function.gmp-perfect-square | function.gmp-or | function.gmp-nextprime | function.gmp-neg | function.gmp-mul | function.gmp-mod | function.gmp-legendre | function.gmp-jacobi | function.gmp-invert | function.gmp-intval | function.gmp-init | function.gmp-hamdist | function.gmp-gcdext | function.gmp-gcd | function.gmp-fact | function.gmp-divexact | function.gmp-div | function.gmp-div-r | function.gmp-div-qr | function.gmp-div-q | function.gmp-com | function.gmp-cmp | function.gmp-clrbit | function.gmp-and | function.gmp-add | function.gmp-abs |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.