text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
getprotobyname() returns the protocol number associated with the protocol name as per / etc / protocols.
|
getprotobyname() は、プロトコル name のプロトコル番号を/etc/protocolsから 取得して返します。
|
Prev
|
getprotobynumber() も参照下さい。
|
Prev
|
(PHP 4)
|
getprotobynumber() returns the protocol name associated with protocol number as per / etc / protocols.
|
getprotobynumber() は、/etc/protocolsに基づき プロトコル番号 number が指すプロトコル名を 返します。
|
Prev
|
getprotobyname() も参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Returns the maximum value that can be returned by a call to rand().
|
rand() をコールすることにより得られる 最大の値を返します。
|
Prev
|
rand(), srand(), mt_rand(), mt_srand(), mt_getrandmax() も参照下さい。
|
Prev
|
(PHP 4)
|
As of PHP 4.0.4, this function is an alias for get_included_files()
|
PHP 4.0.4以降、この関数は get_included_files() のエイリアスです。
|
The array returned by get_required_files() was an associative array and only listed files included by require() and require_once().
|
PHP 4.0.1pl2および以前のバージョンにおいて、 get_required_files() は、読み込まれるファイル が拡張子 .php で終ることを仮定しており、他の拡 張子のファイルは返されませんでした。 get_required_files() により返される配列は、連 想配列であり、 require() および require_once() で読み込まれたファイルのみが一 覧に含まれていました。
|
Prev
|
require(), require_once(), include(), include_once(), get_included_files() も参照下さい。
|
This function returns a string representing the type of the resource passed to it.
|
(PHP 4 = 4.0.2)
|
$c = mysql_connect(); echo get_resource_type($c) ."\n"; / / prints: mysql link $fp = fopen("foo" ,"w"); echo get_resource_type($fp) ."\n"; / / prints: file $doc = new_xmldoc("1.0"); echo get_resource_type($doc - doc) ."\n"; / / prints: domxml document
|
この関数は、指定した resource の型を表す文字列を返しま す。パラメータが有効なリソースでない場合はエラーとなります。
|
This is an interface to getrusage( 2).
|
(PHP 3 = 3.0.7, PHP 4)
|
If who is 1, getrusage will be called with RUSAGE_CHILDREN.
|
この関数は、getrusage(2)へのインターフェースです。 システムコールから返されたデータを有する連想配列を返します。 who が 1 の場合、getrusageはRUSAGE_CHILDREN を付けてコールされます。
|
Example 1.
|
全てのエントリは、記述されたフィールド名を用いてアクセス可能です。
|
Home
|
例 1 getrusage() の例
|
Prev
|
(PHP 4)
|
getservbyname() returns the Internet port which corresponds to service for the specified protocol as per / etc / services. protocol is either "tcp "or "udp" (in lowercase).
|
getservbyname() は、/etc/servicesに基づき 指定したプロトコル protocol に関して service に対応するインターネットポートを 返します。 protocol は、 TCP または UDP である必要があります。
|
Prev
|
getservbyport() も参照下さい。
|
Prev
|
(PHP 4)
|
getservbyport() returns the Internet service associated with port for the specified protocol as per / etc / services. protocol is either "tcp "or "udp" (in lowercase).
|
getservbyport() は、/etc/servicesに基づき 指定したプロトコル protocol に関して ポート port に関連するインターネットサービスを 返します。 protocol は、 TCP または UDP のどちらかです。
|
Prev
|
getservbyname() も参照下さい。
|
You may use the underscore character '_' as an alias to this function.
|
(PHP 3 = 3.0.7, PHP 4)
|
dngettext
|
例 1 gettext() -check
|
(PHP 3 = 3.0.7, PHP 4)
|
(PHP 3 = 3.0.7, PHP 4)
|
It returns an associative array containing the data returned from the system call.
|
この関数は、gettimeofday(2) へのインターフェースです。この 関数は、システムコールから返されたデータを有する連想配列を 返します。
|
"usec" - microseconds
|
"sec" - 秒
|
"dsttime" - type of dst correction
|
"usec" - マイクロ秒
|
Home
|
"minuteswest" - グリニッジ基準の分
|
getdate
|
"dsttime" - 夏時間補正の型
|
Prev
|
(PHP 3, PHP 4)
|
Returns the type of the PHP variable var.
|
PHP 変数 var の型を返します。
|
Never use gettype() to test for a certain type, since the returned string may be subject to change in a future version.
|
返された文字列は将来的なバージョンで変更される可能性があるので、 特定の型を調べるために gettype() を使用しないで 下さい。更に、この関数は文字列比較を行うため、処理が遅いです。.
|
In addition, it is slow too, as it involves string comparision.
|
替わりに is_* 関数を使用して下さい。
|
Possibles values for the returned string are:
|
返された文字列は、以下のいずれかの値を持ちます。
|
"boolean" (since PHP 4)
|
"boolean" (PHP 4以降)
|
"integer"
|
"integer"
|
"double" (for historical reasons "double "is returned in case of a float, and not simply "float")
|
"double" (歴史的な理由により float の 場合に"double"が返され、"float"とはなりません)
|
"string"
|
"string"
|
"array"
|
"array"
|
"object"
|
"object"
|
"resource" (since PHP 4)
|
"resource" (PHP 4以降)
|
"NULL" (since PHP 4)
|
"null" (PHP 4以降)
|
"user function" (PHP 3 only, deprecated)
|
"user function" (PHP 3のみ。古い形式)
|
"unknown type"
|
"unknown type"
|
For PHP 4, you should use function_exists() and method_exists() to replace the prior usage of gettype() on a function.
|
PHP 4の場合、ある関数に関する gettype() の以前の 使用法を置き換えるには function_exists() および method_exists() を使用する必要があります。
|
Prev
|
settype(), is_array(), is_bool(), is_float(), is_integer(), is_null(), is_numeric(), is_object(), is_resource(), is_scalar(), is_string() も参照下さい。
|
Prev
|
(PHP 4 = 4.3.0)
|
The glob() function searches for all the pathnames matching pattern according to the rules used by the shell.
|
The glob() function searches for all the pathnames matching pattern according to the rules used by the shell. No tilde expansion or parameter substitution is done.
|
Returns an array containing the matched files / directories or FALSE on error.
|
Returns an array containing the matched files/directories or FALSE on error.
|
Valid flags:
|
Valid flags:
|
GLOB_NOESCAPE - Backslashes do not quote metacharacters
|
GLOB_NOSORT - Return files as they appear in the directory (no sorting)
|
?php foreach (glob("*.txt") as $filename) {echo "$filename size ". filesize($filename). "\n";} / * Output will look something like: funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 * /?
|
GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c'
|
fwrite
|
例 1 Convenient way how glob() can replace opendir() and friends.
|
is_dir
|
See also opendir(), readdir() and closedir(), fnmatch().
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
For example, when run in Finland (GMT +0200), the first line below prints "Jan 01 1998 00:00:00", while the second prints "Dec 31 1997 22:00:00 ".
|
date() 関数と同じですが、返される時刻が グリニッジ標準時(GMT) であるところが異なります。たとえば フィンランド(GMT +0200)で実行されると、下の例の最初の行は "Jan 01 1998 00:00:00" と表示されますが、2 番目の行は "Dec 31 1997 22:00:00" と表示されます。
|
echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998)); echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
|
例 1 gmdate() の例
|
Prev
|
date(), mktime(), gmmktime(), strftime() も参 照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Identical to mktime() except the passed parameters represents a GMT date.
|
指定されるパラメータが GMT 日付を表すこと以外は mktime() と同じです。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
Prev
|
a の絶対値を返します。
|
Add two GMP numbers.
|
(PHP 4 = 4.0.4)
|
Prev
|
GMP数を加算します。返り値は、引数を合計を表すGMP数です。
|
Prev
|
(PHP 4 = 4.0.4)
|
Calculates logical AND of two GMP numbers.
|
2つのGMP数の論理積を計算します。
|
Prev
|
(PHP 4 = 4.0.4)
|
Clears (sets to 0) bit index in a.
|
a のビット index をク リア(0に設定)します。
|
Prev
|
(PHP 4 = 4.0.4)
|
Returns a positive value if a b, zero if a = b and negative value if a b.
|
a b の場合に正の値、 a = b の場合にゼロ、 a b の場合に負の値を返しま す。
|
Warning
|
(PHP 4 = 4.0.4)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
This function produces correct results only when it is known in advance that d divides n.
|
高速な "exact division" アルゴリズムを使用して d で n を割ります。 この関数は、 n を d で割った数が既知の場合にのみ正確な結果を出力します。
|
Prev
|
(PHP 4 = 4.0.4)
|
This function is an alias to gmp_div_q().
|
この関数は、 gmp_div_q() へのエイリアスです。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
The result rounding is defined by the round, which can have the following values:
|
a を b で割り、結果 を整数で返します。結果の丸め方は、 round で 指定し、次の値を指定可能です。
|
The result is truncated towards 0.
|
GMP_ROUND_ZERO: 結果は 0 の方に丸められ ます。
|
The result is rounded towards +infinity.
|
GMP_ROUND_PLUSINF: 結果は、 +infinity の方に丸められます。
|
The result is rounded towards -infinity.
|
GMP_ROUND_MINUSINF: 結果は、 -infinity の方に丸められます。
|
See also gmp_div_r(), gmp_div_qr()
|
この関数は、 gmp_div() のようにコールすることも 可能です。
|
Home
|
gmp_div_r(), gmp_div_qr() も参照下さい。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
See the gmp_div_q() function for description of the round argument.
|
この関数は、 n を d で割り、配列を返します。配列の最初の要素は [n/d] (割算の結果の整数値)、2番目の要素は、 (n - [n/d] * d) (割算の余り)です。
|
?php $a = gmp_init ("0x41682179fbf5"); $res = gmp_div_qr ($a, "0xDEFE75"); printf("Result is: q - %s, r - %s", gmp_strval ($res[0]), gmp_strval ($res[1]));?
|
引数 round の説明については、 gmp_div_q() 関数を参照下さい。
|
Prev
|
例 1GMP 数の割算
|
gmp_div_q
|
gmp_div_q(), gmp_div_r() も 参照下さい。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
The remainder has the sign of the n argument, if not zero.
|
n を d で整数として 割った際の余りを計算します。余りは、引数 n がゼロでないばあいに、これと同じ符号を有します。
|
See also gmp_div_q(), gmp_div_qr()
|
引数 round の説明については、関数 gmp_div_q() を参照下さい。
|
Home
|
gmp_div_q(), gmp_div_qr() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.4)
|
Calculates factorial (a!) of a.
|
a の階乗 (a!) を計算し ます。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
Returns an array with respective elements g, s and t.
|
a*s + b*t = g = gcd(a,b) となるような g, s, t を計算します。ただし、gcd は最大公約数です。g, s, t を要 素とする配列を返します。
|
(PHP 4 = 4.0.4)
|
(PHP 4 = 4.0.4)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.