Search Results
Parameters ¶ num1 The number to scan. A GMP object, an int, or a string that can be interpreted as a number following the same logic as if the string was used in gmp_init () with automatic base detection (i.e. when base is equal to 0). start The starting bit.
Jul 11, 2025 · The gmp_scan1 () is an inbuilt function which is used to scan "1" in the GMP number (GNU Multiple Precision : For large numbers) starting from given index which move towards most significant bits in the number.
{"payload":{"allShortcutsEnabled":false,"fileTree":{"reference/gmp/functions":{"items":[{"name":"gmp-abs.xml","path":"reference/gmp/functions/gmp-abs.xml ...
Learn how to use the gmp_scan1 function in PHP for scanning bits in GMP numbers. Get examples and detailed explanations.
Valeurs de retour La fonction PHP gmp_scan1 () renvoie une valeur entière pour la position ou l'index du bit trouvé. S'il ne définit pas un bit défini, il renverra -1.
A GMP object, an int, or a string that can be interpreted as a number following the same logic as if the string was used in gmp_init () with automatic base detection (i.e. when base is equal to 0).
Return Returns the index of the found bit, as an int. If no set bit is found, -1 is returned.
