PHP gmp_intval() FunctionThe PHP GMP gmp_intval() function converts given parameters into integer value. The function's input data can be a string value, binary value, or GMP parameters value. SyntaxThe following syntax shows the PHP GMP intval function. Parameters
Return ValuesThe function gets the integer value of the given GMP number $numbers. Note
ExamplesThe following example shows the converted integer value from several parameters using the GMP function. Example1: the following example shows gmp_intval() function with basic value. The given parameter shows integer values of the various numbers. Output: The image shows the integer value of the given value. Example2: The below code shows how gmp_intval() works when given a GMP number with limits. Output: The image show gmp_intval() functions output value. Example3: The below code shows how gmp_intval() works when given a GMP number as an argument. Output: The image show gmp_intval() functions output value. ConclusionThe gmp_intval() function displays the integer value of the given string data. If the string value assigns a limit, the function easily shows integer data. Next TopicPHP gmp_invert() Function |