text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
This expression is string with each character converted to a bracket expression; this bracket expression contains that character's uppercase and lowercase form if applicable, otherwise it contains the original character twice.
|
大文字小文字を区別せず string にマッチする、 有効な正規表現式を返します。この表現式は、 string の中の個々の文字を '[]' 表現に変換したものです。 この '[]' 表現は、可能であれば大文字と小文字の書式で構成 され、そうでない場合は元々の文字が2度出現します。
|
echo sql_regcase ("Foo bar");
|
例 1 sql_regcase() の例
|
This can be used to achieve case insensitive pattern matching in products which support only case sensitive regular expressions.
|
この関数は、大文字小文字を区別する正規表現しかサポートしない製品に おいて、大文字小文字を区別しないパターンマッチングを行いたい場合に 役立ちます。
|
Returns the square root of arg.
|
(PHP 3, PHP 4)
|
See also pow().
|
引数 arg の平方根を返します。
|
Seeds the random number generator with seed.
|
(PHP 3, PHP 4)
|
Note:
|
シード seed で乱数ジェネレータを 初期化します。
|
See also rand(), getrandmax() and mt_srand().
|
rand(), getrandmax(), mt_rand(), mt_srand(), mt_getrandmax() も参照下さい。
|
This causes the function to end its execution immediately and pass control back to the line from which it was called.
|
オプションの return 文により値を返すことができます。 リストやオブジェクトを含むあらゆる型を返すことができます。 これにより、関数の実行を任意の箇所で終了し、その関数を呼び出した 箇所に制御を戻すことが出来ます。詳細に関しては return() を参照してください。
|
You can 't return multiple values from a function, but similar results can be obtained by returning a list.
|
複数の値を返すことはできませんが、リストを返すことにより 同じ効果を得ることができます。
|
To return a reference from a function, you have to use the reference operator in both the function declaration and when assigning the returned value to a variable:
|
関数からリファレンスを返すには、リファレンス演算子 を関数宣 言部および変数への返り値を代入する際の両方で使用する必要があります。
|
For more information on references, please check out References Explained.
|
リファレンスに関するさらに詳しい情報が リファレンスの説明 にあります。
|
(PHP 4 = 4.0.1)
|
(PHP 4 = 4.0.1)
|
If only two parameters were passed to this function, the values parsed will be returned as an array.
|
関数 sscanf() は、 printf() の入力版です。 sscanf() は、文字列 str を読み込み、これを指定したフォーマット format に基づき解釈します。この関数のパラメー タが二つだけの場合、処理された値は配列として返されます。
|
Any whitespace in the format string matches any whitespace in the input string.
|
例 1 sscanf() の例
|
Example 1. sscanf() Example
|
例 2 sscanf() - オプションパラメータの使用法
|
Prev
|
fscanf(), printf(), sprintf() も参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Gathers the statistics of the file named by filename.
|
filename で指定されたファイルに ついての統計情報を取得します。
|
device
|
ファイルの統計情報を、以下の要素を持つ配列として 返します。
|
size in bytes
|
gourp id owner
|
The results of this function are cached.
|
blocksize for filesystem I/O *
|
Home
|
エラーの場合は、 FALSE を返します。
|
set_file_buffer
|
stat() は、 fopen() のように URLを処理しません。
|
symlink
|
この関数の結果はキャッシュされます。詳細は、 clearstatcache() を参照下さい。
|
Prev
|
(PHP 3 = 3.0.2, PHP 4)
|
Returns 0 if str1 is less than str2; 0 if str1 is greater than str2, and 0 if they are equal.
|
str1 が str2 より 小さい場合は負、 str1 が str2 より大きい場合は正、等しい場合は 0 を返します。
|
Example 1. strcasecmp() example
|
例 1 strcasecmp() の例
|
See also ereg(), strcmp(), substr(), stristr(), strncasecmp(), and strstr().
|
ereg(), strcmp(), substr(), stristr(), strncasecmp(), strstr() も 参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
This function is an alias for strstr(), and is identical in every way.
|
この関数は strstr() の別名で、すべて面で同じです。
|
Prev
|
(PHP 3, PHP 4)
|
Returns 0 if str1 is less than str2; 0 if str1 is greater than str2, and 0 if they are equal.
|
str1 が str2 よりも小さければ 0 を、 str1 が str2 よりも大きければ 0 を、 等しければ 0 を返します。
|
Note that this comparison is case sensitive.
|
この比較は大文字小文字を区別することに注意してください。
|
Prev
|
ereg(), strcasecmp(), substr(), stristr(), strncasecmp(), strncmp(), strstr() も参照下 さい。
|
Prev
|
(PHP 4 = 4.0.5)
|
Returns 0 if str1 is less than str2; 0 if str1 is greater than str2, and 0 if they are equal. strcoll() uses the current locale for doing the comparisons.
|
str1 が str2 より小 さい場合に0未満の値、 str1 が str2 より大きい場合に0より大きな値、両者が 等しい場合に0を返します。 strcoll() は比較を行 う際にカレントのロケールを使用します。カレントのロケールがCまたは POSIXの場合、この関数は strcmp() と等価です。
|
Note that this comparison is case sensitive, and unlike strcmp() this function is not binary safe.
|
この比較は大文字小文字を区別すること、そして、 strcmp() とは異なり、バイナリには使用できないこ とに注意して下さい。
|
Prev
|
ereg(), strcmp(), strcasecmp(), substr(), stristr(), strncasecmp(), strncmp(), strstr(), setlocale() も参照下さい。
|
Prev
|
(PHP 3 = 3.0.3, PHP 4)
|
Returns the length of the initial segment of str1 which does not contain any of the characters in str2.
|
str1 において str2 の文字が どれも含まれて ない 最初のセグメントの長さを返します。
|
Prev
|
strspn() も参照下さい。
|
Prev
|
(PHP 4 = 4.3.0)
|
Creates and returns a stream context with any parameters supplied in params preset.
|
Creates and returns a stream context with any parameters supplied in params preset.
|
Prev
|
See Also: stream_context_set_params()
|
Prev
|
(PHP 4 = 4.3.0)
|
Returns an array of options on the specified stream or context.
|
Returns an array of options on the specified stream or context.
|
Prev
|
(PHP 4 = 4.3.0)
|
Sets an option on the specified context. value is set to option for wrapper
|
Sets an option on the specified context. value is set to option for wrapper
|
params should be an associative array of the structure: $params[ 'paramname'] = "paramvalue";.
|
(PHP 4 = 4.3.0)
|
Name of user-defined callback function to be called whenever a stream triggers a notification.
|
params should be an associative array of the structure: $params['paramname'] = "paramvalue";.
|
stream_context_set_option
|
表 1Parameters
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
See Also: stream_register_filter(), and stream_filter_prepend()
|
注意 stream_register_filter() must be called first in order to register the desired user filter to filtername.
|
stream_context_set_params
|
See Also: stream_register_filter(), and stream_filter_prepend()
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
See Also: stream_register_filter(), and stream_filter_append()
|
注意 stream_register_filter() must be called first in order to register the desired user filter to filtername.
|
stream_filter_append
|
See Also: stream_register_filter(), and stream_filter_append()
|
Prev
|
(PHP 5 CVS only)
|
Returns an indexed array containing the name of all stream filters available on the running system.
|
Returns an indexed array containing the name of all stream filters available on the running system.
|
Using stream_get_filters()
|
例 1Using stream_get_filters()
|
Prev
|
See Also: stream_register_filter(), and stream_get_wrappers()
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
The stream can be any stream created by fopen(), fsockopen() and pfsockopen().
|
Returns information about an existing stream. The stream can be any stream created by fopen(), fsockopen() and pfsockopen(). The result array contains the following items:
|
timed_out (bool) - TRUE if the stream timed out while waiting for data on the last call to fread() or fgets().
|
timed_out (bool) - TRUE if the stream timed out while waiting for data on the last call to fread() or fgets().
|
See socket_set_blocking().
|
blocked (bool) - TRUE if the stream is in blocking IO mode. See socket_set_blocking().
|
Note that for socket streams this member can be TRUE even when unread_bytes is non-zero.
|
eof (bool) - TRUE if the stream has reached end-of-file. Note that for socket streams this member can be TRUE even when unread_bytes is non-zero. To determine if there is more data to be read, use feof() instead of reading this item.
|
unread_bytes (int) - the number of bytes currently contained in the read buffer.
|
unread_bytes (int) - the number of bytes currently contained in the read buffer.
|
The following items were added in PHP 4.3:
|
The following items were added in PHP 4.3:
|
stream_type (string) - a label describing the underlying implementation of the stream.
|
stream_type (string) - a label describing the underlying implementation of the stream.
|
See Appendix I for more information about wrappers.
|
wrapper_type (string) - a label describing the protocol wrapper implementation layered over the stream. See 付録I for more information about wrappers.
|
See Appendix I for more information about wrappers and their wrapper data.
|
wrapper_data (mixed) - wrapper specific data attached to this stream. See 付録I for more information about wrappers and their wrapper data.
|
Filters are currently undocumented.
|
filters (array) - and array containing the names of any filters that have been stacked onto this stream. Filters are currently undocumented.
|
This function was introduced in PHP 4.3, but prior to this version, socket_get_status() could be used to retrieve the first four items, for socket based streams only.
|
注意 This function was introduced in PHP 4.3, but prior to this version, socket_get_status() could be used to retrieve the first four items, for socket based streams only.
|
Note:
|
In PHP 4.3 and later, socket_get_status() is an alias for this function.
|
Prev
|
注意 This function does NOT work on sockets created by the Socket extension.
|
Prev
|
(PHP 5 CVS only)
|
Returns an indexed array containing the name of all stream wrappers available on the running system.
|
Returns an indexed array containing the name of all stream wrappers available on the running system.
|
Prev
|
See Also: stream_register_wrapper()
|
Prev
|
(PHP 5 CVS only)
|
stream_register_filter() allows you to implement your own filter on any registered stream used with all the other filesystem functions (such as fopen(), fread() etc.).
|
stream_register_filter() allows you to implement your own filter on any registered stream used with all the other filesystem functions (such as fopen(), fread() etc.).
|
stream_register_filter() will return FALSE if the filtername is already defined.
|
stream_register_filter() will return FALSE if the filtername is already defined.
|
class myfilter extends php_user_filter {function write($data) {$data = substr($data,1); $written_by_parent = parent::write($data); return ($written_by_parent + 1);}}
|
注意 If your filter alters the length of data, for example by removing the first character, before passing onto parent::write($data); it must be certain to include that stolen character in the return count.
|
The closing parameter tells you whether the stream is, in fact, in the process of closing.
|
This method is called during instantiation of the filter class object. If your filter allocates or initializes any other resources (such as a buffer), this is the place to do it.
|
This method is called upon filter shutdown (typically, this is also during stream shutdown), and is executed after the flush method is called.
|
The example below implements a filter named rot13 on the foo-bar.txt stream which will perform ROT-13 encryption on all letter characters written to/read from that stream.
|
The example below implements a filter named rot13 on the foo-bar.txt stream which will perform ROT-13 encryption on all letter characters written to / read from that stream.
|
例 1Filter for ROT13 encoding data on foo-bar.txt stream
|
Prev
|
See Also: stream_register_wrapper(), stream_filter_prepend(), and stream_filter_append()
|
To implement a wrapper, you need to define a class with a number of member functions, as defined below.
|
(PHP 4 = 4.3.0)
|
You must implement the methods exactly as described below - doing otherwise will lead to undefined behaviour.
|
stream_register_wrapper() allows you to implement your own protocol handlers and streams for use with all the other filesystem functions (such as fopen(), fread() etc.).
|
If this flag is not set, you should not raise any errors.
|
stream_register_wrapper() will return FALSE if the protocol already has a handler.
|
If the requested resource was opened successfully, you should return TRUE, otherwise you should return FALSE
|
This method is called immediately after your stream object is created. path specifies the URL that was passed to fopen() and that this object is expected to retrieve. You can use parse_url() to break it apart.
|
You must release any resources that were locked or allocated by the stream.
|
mode is the mode used to open the file, as detailed for fopen(). You are responsible for checking that mode is valid for the path requested.
|
You must return up-to count bytes of data from the current read / write position as a string.
|
options holds additional flags set by the streams API. It can hold one or more of the following values OR'd together.
|
If no more data is available, return either FALSE or an empty string.
|
If the path is opened successfully, and STREAM_USE_PATH is set in options, you should set opened_path to the full path of the file/resource that was actually opened.
|
This method is called in response to fwrite() This method is called in response to fwrite() calls on the stream.
|
If the requested resource was opened successfully, you should return TRUE, otherwise you should return FALSE
|
If there is not enough room, try to store as many bytes as possible.
|
This method is called when the stream is closed, using fclose(). You must release any resources that were locked or allocated by the stream.
|
This method is called in response to fseek() This method is called in response to fseek() calls on the stream.
|
This method is called in response to feof() calls on the stream. You should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise.
|
See fseek() for more information about these parameters.
|
This method is called in response to ftell() calls on the stream. You should return the current read/write position of the stream.
|
A Stream for reading / writing global variables
|
例 1A Stream for reading/writing global variables
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.