Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: gmp_scan0 - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_scan1" width="11" height="7"/> <gmp_random
Last updated: Mon, 05 Feb 2007

view this page in

gmp_scan0

(PHP 4 >= 4.0.4, PHP 5)

gmp_scan0 — 0 を探す

説明

int gmp_scan0 ( resource a, int start )

ビット start から最上位ビットの方に最初の クリアビットが見付かるまで a をスキャン します。見付かったビットの番号を返します。

例 754. gmp_scan0() の例

<?php
// 0 番目から探しはじめ、3 番目の位置に "0" ビットが見つかります
$s1 = gmp_init("10111", 2);
echo
gmp_scan0($s1, 0) . "\n";

// 5 番目から探しはじめ、7 番目の位置に "0" ビットが見つかります
$s2 = gmp_init("101110000", 2);
echo
gmp_scan0($s2, 5) . "\n";
?>

上のプログラムの出力は以下のようになります。


3
7

     



add a note add a note User Contributed Notes
gmp_scan0
There are no user contributed notes for this page.

gmp_scan1" width="11" height="7"/> <gmp_random
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites