Results of 1 - 10 of about 27 for fprintf (0.004 sec.)
- fprintf — フォーマットされた文字列をストリームに書き込む | PHP 8.3 15306
- fprintf (PHP 5, PHP 7, PHP 8) fprintf — フォーマットされた文字列をストリームに書き込む 説明 function fprintf ( resource $stream , string $format , mixed ...$values ): int format によって作成された文字列を stream で指定したストリームに書き込
... ntCountError がスローされるようになりました。 これより前のバージョンでは、代わりに E_WARNING を発生させていました。 例 例1 fprintf() : 数値のゼロ埋め <?php if (!( $fp = fopen ( 'currency.txt' , 'w' ))) { return; } $year = 2005 ; $month = 5 ; $day = 6 ; ... ntf ( $fp , "%04d-%02d-%02d" , $year , $month , $day ); // ISO 形式にフォーマットした日付を date.txt に書き込みます ?> 例2 fprintf() : 金額のフォーマット <?php if (!( $fp = fopen ( 'date.txt' , 'w' ))) { return; } $money1 = 68.75 ; $money2 = 54.35 ; $mo ... ney = $money1 + $money2 ; // echo $money は "123.1" を出力します $len = fprintf ( $fp , '%01.2f' , $money ); // "123.10" を currency.txt に書き込みます echo " $len バイトを currency.txt に書き込みました ...
-
https://man.mtool.work/php/8.3/function.fprintf.html
- 変更履歴 | PHP 8.3 10664
- 変更履歴 この拡張モジュールのクラス/関数/メソッドには次のような変更がありました。 Version Function Description 8.5.0 chr [0, 255] の範囲外の整数を渡すことは非推奨になりました。 fprintf 精度を指定しないフォーマッタを使った場合、 精度を 0 とし
... タを使った場合、 精度を 0 として正しく扱うようになりました。 これより前のバージョンでは、誤って精度をリセットしていました。 vfprintf 精度を指定しないフォーマッタを使った場合、 精度を 0 として正しく扱うようになりました。 これより前のバージョンでは、誤って精 ... を渡した場合、 ValueError をスローするようになりました。 それより前のバージョンでは、 explode は false を返していました。 fprintf この関数は、失敗時に false を返さなくなりました。 fprintf 引数の数が0だった場合、 ValueError がスローされるようになりました ... 。 これより前のバージョンでは、代わりに E_WARNING を発生させていました。 fprintf [width] の値が0より小さかったり、 PHP_INT_MAX より大きい場合に、 ValueError をスローするようになりました。 これより前のバー ...
-
https://man.mtool.work/php/8.3/changelog.strings.html
- odbc_field_precision — odbc_field_len() | PHP 8.3 9348
- odbc_field_precision (PHP 4, PHP 5, PHP 7, PHP 8) odbc_field_precision — odbc_field_len() のエイリアス 説明 この関数は次の関数のエイリアスです。 odbc_field_len() . 参考 浮動小数点の精度を得るには odbc_field_scale() - フィールドの精度を得る
... 他のマニュアルの関連ページ DuckDB ODBC API on macOS Linux JM fprintf(3) Linux JM printf(3) Linux JM vprintf(3) Linux JM snprintf(3) Linux JM sprintf(3) ...
-
https://man.mtool.work/php/8.3/function.odbc-field-precision.html
- vfprintf — フォーマットされた文字列をストリームに書き込む | PHP 8.3 9117
- vfprintf (PHP 5, PHP 7, PHP 8) vfprintf — フォーマットされた文字列をストリームに書き込む 説明 function vfprintf ( resource $stream , string $format , array $values ): int format によって作成された文字列を stream で指定したストリームに書き込
... みます。 fprintf() と同様の動作をしますが、 可変引数ではなく引数の配列を受け取って処理します。 パラメータ stream format 0個以上のディレクテ ... ValueError がスローされるようになりました。 これより前のバージョンでは、代わりに E_WARNING を発生させていました。 例 例1 vfprintf() : 数値のゼロ埋め <?php if (!( $fp = fopen ( 'date.txt' , 'w' ))) return; $year = 2025 ; $month = 5 ; $day = 6 ; vfprintf ... を date.txt に書き込みます ?> 参考 printf() - フォーマット済みの文字列を出力する sprintf() - フォーマットされた文字列を返す fprintf() - フォーマットされた文字列をストリームに書き込む vprintf() - フォーマットされた文字列を出力する vsprintf() - フォーマット ...
-
https://man.mtool.work/php/8.3/function.vfprintf.html
- 例 | PHP 8.3 8903
- 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove
... new MyListenerConnection ( $base , $fd ); } public function accept_error_cb ( $listener , $ctx ) { $base = $this -> base ; fprintf ( STDERR , "Got an error %d (%s) on the listener. " . "Shutting down.\n" , EventUtil :: getLastSocketErrno (), EventUtil : ... f ( $events & EventBufferEvent :: ERROR ) { // Fetch errors from the SSL error stack while ( $err = $bev -> sslError ()) { fprintf ( STDERR , "Bufferevent error %s.\n" , $err ); } } if ( $events & ( EventBufferEvent :: EOF | EventBufferEvent :: ERROR )) ... is callback is invoked when we failed to setup new connection for a client function accept_error_cb ( $listener , $ctx ) { fprintf ( STDERR , "Got an error %d (%s) on the listener. " . "Shutting down.\n" , EventUtil :: getLastSocketErrno (), EventUtil : ...
-
https://man.mtool.work/php/8.3/event.examples.html
- EventBufferEvent::sslError — Returns most recent OpenSSL error reported on the ... 8673
- EventBufferEvent::sslError (PECL event >= 1.2.6-beta) EventBufferEvent::sslError — Returns most recent OpenSSL error reported on the buffer event 説明 public function EventBufferEvent::sslError (): string Returns most recent OpenSSL error r
... f ( $events & EventBufferEvent :: ERROR ) { // Fetch errors from the SSL error stack while ( $err = $bev -> sslError ()) { fprintf ( STDERR , "Bufferevent error %s.\n" , $err ); } } if ( $events & ( EventBufferEvent :: EOF | EventBufferEvent :: ERROR )) ...
-
https://man.mtool.work/php/8.3/eventbufferevent.sslerror.html
- EvStat::__construct — Constructs EvStat watcher object | PHP 8.3 8673
- EvStat::__construct (PECL ev >= 0.2.0) EvStat::__construct — Constructs EvStat watcher object 説明 public function EvStat::__construct ( string $path , float $interval , callable $callback , mixed $data = null , int $priority = 0 ) Construc
... ' ]); printf ( "Current atime: %ld\n" , $attr [ 'atime' ]); printf ( "Current mtime: %ld\n" , $attr [ 'mtime' ]); } else { fprintf ( STDERR , "`messages` file is not there!" ); $w -> stop (); } }); ?> 他のマニュアルの関連ページ Linux JM fstat(2) Linux J ...
-
https://man.mtool.work/php/8.3/evstat.construct.html
- EvStat::attr — Returns the values most recently detected by Ev | PHP 8.3 8229
- EvStat::attr (PECL ev >= 0.2.0) EvStat::attr — Returns the values most recently detected by Ev 説明 public function EvStat::attr (): array Returns array of the values most recently detected by Ev パラメータ この関数にはパラメータはありません
... ' ]); printf ( "Current atime: %ld\n" , $attr [ 'atime' ]); printf ( "Current mtime: %ld\n" , $attr [ 'mtime' ]); } else { fprintf ( STDERR , "`messages` file is not there!" ); $w -> stop (); } }); Ev :: run (); ?> 参考 EvStat::prev() - Returns the prev ...
-
https://man.mtool.work/php/8.3/evstat.attr.html
- bcdiv — 2つの任意精度数値で除算を行う | PHP 8.3 8229
- bcdiv (PHP 4, PHP 5, PHP 7, PHP 8) bcdiv — 2つの任意精度数値で除算を行う 説明 function bcdiv ( string $num1 , string $num2 , ? int $scale = null ): string num1 を num2 で除算します。 パラメータ num1 被除数を表す文字列。 num2 割る数を表す文字
... 任意精度数値の乗算を行う BcMath\Number::div() - 任意精度数値の除算を行う 他のマニュアルの関連ページ Linux JM dc(1) Linux JM vfprintf(3) Linux JM printf(3) Linux JM snprintf(3) Linux JM sprintf(3) Linux JM fprintf(3) ...
-
https://man.mtool.work/php/8.3/function.bcdiv.html
- 例 | PHP 8.3 8015
- 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n
... ' ]); printf ( "Current atime: %ld\n" , $attr [ 'atime' ]); printf ( "Current mtime: %ld\n" , $attr [ 'mtime' ]); } else { fprintf ( STDERR , "`messages` file is not there!" ); $w -> stop (); } }); Ev :: run (); ?> 例11 /var/log/messages の変更の監視 (1 ... }); $timer -> data = $stat ; Ev :: run (); ?> 例12 ステータスの変更の処理 <?php $pid = pcntl_fork (); if ( $pid == - 1 ) { fprintf ( STDERR , "pcntl_fork failed\n" ); } elseif ( $pid ) { $w = new EvChild ( $pid , FALSE , function ( $w , $revents ) { $w ...
-
https://man.mtool.work/php/8.3/ev.examples.html