text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Prev
|
bcdiv() も参照下さい。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The optional scale sets the number of digits after the decimal place in the result.
|
left operand と right operand を掛け算して、その結果を返します。 オプションの scale パラメータは、結果における 小数点以下の桁数を指定するために使用します。
|
Prev
|
bcdiv() も参照下さい。
|
Raise x to the power y.
|
(PHP 3, PHP 4)
|
See also bcpowmod(), and bcsqrt().
|
x の y 乗を求めます。 オプションの scale パラメータは、結果における 小数点以下の桁数を指定するために使用します。
|
Home
|
bcsqrt() も参照下さい。
|
(PHP 5 CVS only)
|
(PHP 5 CVS only)
|
The optional scale can be used to set the number of digits after the decimal place in the result.
|
Use the fast-exponentiation method to raise x to the power y with respect to the modulus modulus. The optional scale can be used to set the number of digits after the decimal place in the result.
|
?php $a = bcpowmod( $x,$y,$mod); $b = bcmod(bcpow($x,$y),$mod); / * $a and $b are equal to each other. * /?
|
The following two statements are functionally identical. The bcpowmod() version however, executes in less time and can accept larger parameters.
|
A natural number is any positive non-zero integer.
|
注意 Because this method uses the modulus operation, non-natural numbers may give unexpected results. A natural number is any positive non-zero integer.
|
Prev
|
See also bcpow(), and bcmod().
|
Prev
|
(PHP 3, PHP 4)
|
This function sets the default scale parameter for all subsequent bc math functions that do not explicitly specify a scale parameter.
|
この関数は、後続のすべての BC 演算関数において、明示的に scale パラメータが指定されない場合の スケール(結果の精度、小数点以下の桁数) のデフォルト値を設定します。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The optional scale parameter sets the number of digits after the decimal place in the result.
|
operand の平方根を返します。 オプションの scale パラメータは、結果における 小数点以下の桁数を指定するために使用します。
|
Prev
|
bcpow() も参照下さい。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The optional scale parameter is used to set the number of digits after the decimal place in the result.
|
right operand から left operand を引いて、その結果を文字列で返します。 オプションの scale パラメータは、結果における 小数点以下の桁数を指定するために使用します。
|
Prev
|
bcadd() も参照下さい。
|
(PHP 3 = 3.0.9, PHP 4)
|
(PHP 3 = 3.0.9, PHP 4)
|
The conversion is done byte-wise with the high-nibble first.
|
str を16進表現に変換したASCII文字列を返し ます。変換は、上位ニブルからバイト毎に行われます。
|
Prev
|
pack() および unpack() も参照 下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Returns the decimal equivalent of the binary number represented by the binary_string argument.
|
引数 binary_string により指定された 2進数 と等価な 10 進数を返し ます。
|
The largest number that can be converted is 31 bits of 1 's or 2147483647 in decimal.
|
bindec() は、2進数を integer に変換 します。変換可能な最も大きな数字は 1 が 31 ビット並んだ 2進数で あり、10進数の2147483647です。
|
Prev
|
decbin() 関数も参照下さい。
|
Warning
|
(PHP 4 = 4.2.0)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
(PHP 3 = 3.0.7, PHP 4)
|
(PHP 3 = 3.0.7, PHP 4)
|
Prev
|
bindtextdomain() 関数はドメインへのパスを 設定します。
|
Prev
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
ポインタ bz で参照されるbzip2ファイルを閉じ ます。
|
Returns TRUE on success or FALSE on failure.
|
成功時に TRUE 、失敗時に FALSE を返します。
|
See also bzopen().
|
ファイルポインタは有効である必要があり、 bzopen() によりオープンされたファイルを指してい る必要があります。
|
Bzip2 Compression Functions
|
bzopen() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
bzcompress() compresses the source string and returns it as bzip2 encoded data.
|
bzcompress() は、文字列 source を圧縮し、bzip2形式のデータとして返 します。
|
The optional parameter workfactor controls how the compression phase behaves when presented with worst case, highly repetitive, input data.
|
オプションのパラメータ blocksize は、圧縮時 のブロック長を指定し、1から9の数とする必要があります。この場合、9 の圧縮度が最大ですが、リソースの消費量も最大となります。 blocksize は、デフォルトで4になっています。
|
Regardless of the workfactor, the generated output is the same.
|
オプションのパラメータ workfactor は、 繰り返しが多い、最悪の入力データの場合の圧縮処理の動作を制御しま す。この値は、0から250までとなり、0は特別な場合、30はデフォルト値 となります。 workfactor によらず圧縮された データは同じになります。
|
?php $str = "sample data"; $bzstr = bzcompress($str, 9); print ($bzstr);?
|
例 1 bzcompress() の例
|
Prev
|
bzdecompress() も参照下さい。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
If the optional parameter small is TRUE, an alternative decompression algorithm will be used which uses less memory (the maximum memory requirement drops to around 2300K) but works at roughly half the speed.
|
bzdecompress() は、bzip2形式のデータの文字列 source を解凍し、返します。オプションのパ ラメータ small が TRUE の場合、よりメモリの消 費量が少ない(所要メモリは最大2300K程度まで少なくなります)別の圧縮 アルゴリズムが使用されますが、速度は約半分になってしまいます。 この機能に関する詳細については、 bzip2 ドキュメント を参照下さい。
|
Example 1. bzdecompress()
|
例 1 bzdecompress()
|
Prev
|
bzcompress() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
Returns the error number of any bzip2 error returned by the file pointer bz.
|
ファイルポインタ bz から返されたbzip2エラー のエラー番号を返します。
|
Prev
|
bzerror() および bzerrstr() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
Returns the error number and error string, in an associative array, of any bzip2 error returned by the file pointer bz.
|
ファイルポインタ bz から返されたbzip2エラー のエラー番号とエラー文字列を連想配列として返します。
|
?php $error = bzerror( $bz); echo $error["errno"]; echo $error["errstr"];?
|
例 1 bzerror() の例
|
Prev
|
bzerrno() および bzerrstr() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
Returns the error string of any bzip2 error returned by the file pointer bz.
|
ファイルポインタ bz から返されたbzip2エラー のエラーの文字列を返します。
|
Prev
|
bzerrno() および bzerror() も 参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
Forces a write of all buffered bzip2 data for the file pointer bz.
|
バッファリングされた全てのbzip2データを bz が指すファイルポインタに書き込みます。
|
See also bzread() and bzwrite().
|
成功時の TRUE 、失敗した際に FALSE を返します。
|
Home
|
bzread() および bzwrite() も 参照下さい。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
If the open fails, the function returns FALSE, otherwise it returns a pointer to the newly opened file.
|
bzip2 (.bz2) ファイルを読み書き用にオープンします。 filename は、オープンするファイルの名前で す。 mode は、 fopen() 関数 (読み込みは`r'、書き込みは`w'、等) に似ています。
|
?php $bz = bzopen( "/ tmp / foo.bz2", "r"); $decompressed_file = bzread($bz, filesize(" / tmp / foo.bz2")); bzclose($bz); print ("The contents of / tmp / foo.bz2 are:"); print ("\n br \n "); print ($decompressed_file);?
|
オープンできなかった場合、この関数は FALSE を返します。それ以外の場 合は、新規にオープンされたファイルへのポインタが返されます。
|
Prev
|
例 1 bzopen() の例
|
bzflush
|
bzclose() も参照下さい。
|
bzread() reads up to length bytes from the bzip2 file pointer referenced by bz.
|
(PHP 4 = 4.0.4)
|
If the optional parameter length is not specified, bzread() will read 1024 (uncompressed) bytes at a time.
|
bzread() は、 bz が指す bzip2ファイルポインタから最大 length バイト 読み込みます。読み込みは、(圧縮前の状態で) length バイトが読み込まれたか、EOFに達した かのどちらか最初に来た方で終了します。オプションのパラメータ length が指定されない場合、 bzread() は一度に(圧縮前の状態で)1024バイト読み 込みます。
|
?php $bz = bzopen( "/ tmp / foo.bz2", "r"); $str = bzread($bz, 2048); print ($str);?
|
例 1 bzread() の例
|
Prev
|
bzwrite() と bzopen() も参照 下さい。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
If the optional length argument is given, writing will stop after length (uncompressed) bytes have been written or the end of string is reached, whichever comes first.
|
bzwrite() は、文字列 data の中身を bz が指すbzip2ファイルストリームに書き込み ます。オプションの引数 length を指定した場合、 (圧縮前の)lengthバイト分の書き込みが終ったか、文字列の終端に達し たかで書き込みは終了します。
|
?php $str = "uncompressed data"; $bz = bzopen(" / tmp / foo.bz2", "w"); bzwrite($bz, $str, strlen($str)); bzclose($bz);?
|
例 1 bzwrite() の例
|
Prev
|
bzread() および bzopen() も参 照下さい。
|
Prev
|
(PHP 4 = 4.1.0)
|
This function will return the number of days in the month of year for the specified calendar.
|
この関数は、指定した calendar について year 年 month 月の日数 を返します。
|
Prev
|
jdtounix() も参照下さい。
|
Prev
|
(PHP 4 = 4.1.0)
|
Prev
|
(PHP 4 = 4.1.0)
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
For example:
|
paramarr にパラメータを指定して、 function_name で指定したユーザ定義関数をコー ルします。例えば次のようになります。
|
See also: call_user_func(), call_user_method(), call_user_method_array().
|
call_user_func(), call_user_method(), call_user_method_array() も参照下さい。
|
Function Handling functions
|
注意 この関数は、PHP 4.0.4pl1のリリース後にCVSコードに追加されました。
|
Call a user defined function given by the function parameter.
|
(PHP 3 = 3.0.3, PHP 4)
|
function barber ($type) {print "You wanted a $type haircut, no problem";} call_user_func ('barber', "mushroom"); call_user_func ('barber', "shave");
|
パラメータ function_name で指定したユーザ定義 関数をコールします。次のようにして下さい。
|
Prev
|
call_user_func_array(), call_user_method(), call_user_method_array() も参照下さい。
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
The call_user_method_array() function is deprecated as of PHP 4.1.0, use the call_user_func_array() variety with the array ($obj, "method_name") syntax instead.
|
PHP 4.1.0以降、 call_user_method() 関数は古い関数 となっています。代わりに array( $obj, "method_name") 構文を指定して call_user_func() 等を使用して下さい。
|
See also: call_user_func_array(), call_user_func(), call_user_method().
|
パラメータ paramarr を使用してユーザ定義オブジェ クト obj から method_name で参照されるメソッドをコールします。
|
Prev
|
call_user_func_array(), call_user_func(), call_user_method() も参照下さい。
|
Class / Object Functions
|
注意 この関数は、PHP 4.0.4pl1のリリース後にCVSコードに追加されました。
|
Warning
|
(PHP 3 = 3.0.3, PHP 4)
|
Calls the method referred by method_name from the user defined obj object.
|
PHP 4.1.0以降、 call_user_method() 関数は古い関数 となっています。代わりに array( $obj, "method_name") 構文を指定して call_user_func() 等を使用して下さい。
|
Prev
|
call_user_func_array(), call_user_func(), call_user_method_array() も参照下さい。
|
Prev
|
(PHP 4 = 4.1.0)
|
Warning
|
(4.0.2 - 4.2.3 only)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
Warning
|
(4.0.2 - 4.2.3 only)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
Warning
|
(4.0.2 - 4.2.3 only)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.