Results of 1 - 10 of about 476 for Base (0.005 sec.)
- 例 8024
- « インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -
... = $bev -> input -> remove ( $buf , 1024 )) > 0 ) { echo $buf ; } } // Event callback function eventcb ( $bev , $events , $base ) { if ( $events & EventBufferEvent :: CONNECTED ) { echo "Connected.\n" ; } elseif ( $events & ( EventBufferEvent :: ERRO ... $events & EventBufferEvent :: ERROR ) { echo "DNS error: " , $bev -> getDnsErrorString (), PHP_EOL ; } echo "Closing\n" ; $base -> exit (); exit( "Done\n" ); } } if ( $argc != 3 ) { echo <<<EOS Trivial HTTP 0.x client Syntax: php { $argv [ 0 ]} [host ... name] [resource] Example: php { $argv [ 0 ]} www.google.com / EOS; exit(); } $base = new EventBase (); $dns_base = new EventDnsBase ( $base , TRUE ); // We'll use async DNS resolving if (! $dns_base ) { ex ...
-
https://man.mtool.work/php/8.3/event.examples.html
- 例 8024
- « インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -
... = $bev -> input -> remove ( $buf , 1024 )) > 0 ) { echo $buf ; } } // Event callback function eventcb ( $bev , $events , $base ) { if ( $events & EventBufferEvent :: CONNECTED ) { echo "Connected.\n" ; } elseif ( $events & ( EventBufferEvent :: ERRO ... $events & EventBufferEvent :: ERROR ) { echo "DNS error: " , $bev -> getDnsErrorString (), PHP_EOL ; } echo "Closing\n" ; $base -> exit (); exit( "Done\n" ); } } if ( $argc != 3 ) { echo <<<EOS Trivial HTTP 0.x client Syntax: php { $argv [ 0 ]} [host ... name] [resource] Example: php { $argv [ 0 ]} www.google.com / EOS; exit(); } $base = new EventBase (); $dns_base = new EventDnsBase ( $base , TRUE ); // We'll use async DNS resolving if (! $dns_base ) { ex ...
-
https://man.mtool.work/php/8.3/event.examples.html
- Creates new connection listener associated with an event base 6975
- « EventListener EventListener::disable » PHP Manual EventListener Creates new connection listener associated with an event base 検索 EventListener::__construct (PECL event >= 1.2.6-beta) EventListener::__construct — Creates new connection l
... istener associated with an event base 説明 public function EventListener::__construct ( EventBase $base , callable $cb , mixed $data , int $flags , int $backlog ... , mixed $target ) Creates new connection listener associated with an event base. パラメータ base Associated event base. cb A callable that will be invoked when new connection received. data Custom user ... event 1.5.0 UNIX domain sockets' support added. 例 例1 EventListener::__construct() example <?php /* * Simple echo server based on libevent's connection listener. * * Usage: * 1) In one terminal window run: * * $ php listener.php 9881 * * 2) In anot ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- Creates new connection listener associated with an event base 6975
- « EventListener EventListener::disable » PHP Manual EventListener Creates new connection listener associated with an event base 検索 EventListener::__construct (PECL event >= 1.2.6-beta) EventListener::__construct — Creates new connection l
... istener associated with an event base 説明 public function EventListener::__construct ( EventBase $base , callable $cb , mixed $data , int $flags , int $backlog ... , mixed $target ) Creates new connection listener associated with an event base. パラメータ base Associated event base. cb A callable that will be invoked when new connection received. data Custom user ... event 1.5.0 UNIX domain sockets' support added. 例 例1 EventListener::__construct() example <?php /* * Simple echo server based on libevent's connection listener. * * Usage: * 1) In one terminal window run: * * $ php listener.php 9881 * * 2) In anot ...
-
https://man.mtool.work/php/8.3/eventlistener.construct.html
- 数値の基数を任意に変換する 6708
- « atanh bindec » PHP Manual Math 関数 数値の基数を任意に変換する 検索 base_convert (PHP 4, PHP 5, PHP 7, PHP 8) base_convert — 数値の基数を任意に変換する 説明 function base_convert ( string $num , int $from_base , int $to_base ): string num
... を基数 to_base で表した文字列を返します。 num の基数は、 from_base で指定します。 from_base および to_base は、ともに 2 から 36 までである ... 表されます。 この場合、a は 10、b は 11、z は 35 を意味します。 num は、大文字小文字を区別せずに扱います。 警告 大きな数値で base_convert() を使用すると、 精度が失われてしまうことがあります。これは、内部で使用している float の性質によるものです。詳細な ... が含まれている場合は、 何もエラーを出さずにただ無視します。 PHP 7.4.0 以降は、無効な文字を与えることは推奨されません。 from_base 変換前の num の基数。 to_base 変換後の num の基数。 戻り値 num を基数 to_base で表した値を返します。 変更履歴 バージョン 説 ...
-
https://man.mtool.work/php/8.3/function.base-convert.html
- 数値の基数を任意に変換する 6676
- « atanh bindec » PHP Manual Math 関数 数値の基数を任意に変換する 検索 base_convert (PHP 4, PHP 5, PHP 7, PHP 8) base_convert — 数値の基数を任意に変換する 説明 function base_convert ( string $num , int $from_base , int $to_base ): string num
... を基数 to_base で表した文字列を返します。 num の基数は、 from_base で指定します。 from_base および to_base は、ともに 2 から 36 までである ... 表されます。 この場合、a は 10、b は 11、z は 35 を意味します。 num は、大文字小文字を区別せずに扱います。 警告 大きな数値で base_convert() を使用すると、 精度が失われてしまうことがあります。これは、内部で使用している float の性質によるものです。詳細な ... が含まれている場合は、 何もエラーを出さずにただ無視します。 PHP 7.4.0 以降は、無効な文字を与えることは推奨されません。 from_base 変換前の num の基数。 to_base 変換後の num の基数。 戻り値 num を基数 to_base で表した値を返します。 変更履歴 バージョン 説 ...
-
https://man.mtool.work/php/8.3/function.base-convert.html
- Connects to a hostname with optionally asynchronous DNS resolving 6595
- « EventBufferEvent::connect EventBufferEvent::__construct » PHP Manual EventBufferEvent Connects to a hostname with optionally asynchronous DNS resolving 検索 EventBufferEvent::connectHost (PECL event >= 1.2.6-beta) EventBufferEvent::connec
... ects to a hostname with optionally asynchronous DNS resolving 説明 public function EventBufferEvent::connectHost ( EventDnsBase $dns_base , string $hostname , int $port , int $family = EventUtil::AF_UNSPEC ): bool Resolves the DNS name hostname, look ... lback with an error event. If it succeeds, it launches a connection attempt just as EventBufferEvent::connect() would. dns_base is optional. May be null , or an object created with EventDnsBase::__construct() . For asynchronous hostname resolving pas ... s a valid event dns base resource. Otherwise the hostname resolving will block. 注意 : EventDnsBase is available only if Event configured --with-ev ...
-
https://man.mtool.work/php/8.3/eventbufferevent.connecthost.html
- The XMLDiff\Base class 6595
- « インストール手順 XMLDiff\Base::__construct » PHP Manual XMLDiff The XMLDiff\Base class 検索 The XMLDiff\Base class (PECL xmldiff >= 0.8.0) はじめに Base abstract class for all the comparsion classes in the extension. クラス概要 class XMLD
... iff\Base { /* メソッド */ public function __construct ( string $nsname ) abstract public function diff ( mixed $from , mixed $to ): ... mixed abstract public function merge ( mixed $src , mixed $diff ): mixed } 目次 XMLDiff\Base::__construct — Constructor XMLDiff\Base::diff — Produce diff of two XML documents XMLDiff\Base::merge — Produce new XML do ... cument based on diff 関連キーワード: XMLDiff Base mixed diff construct abstract merge Produce xmldiff comparsion classes extension 概要 ...
-
https://man.mtool.work/php/8.3/class.xmldiff-base.html
- Connects to a hostname with optionally asynchronous DNS resolving 6595
- « EventBufferEvent::connect EventBufferEvent::__construct » PHP Manual EventBufferEvent Connects to a hostname with optionally asynchronous DNS resolving 検索 EventBufferEvent::connectHost (PECL event >= 1.2.6-beta) EventBufferEvent::connec
... ects to a hostname with optionally asynchronous DNS resolving 説明 public function EventBufferEvent::connectHost ( EventDnsBase $dns_base , string $hostname , int $port , int $family = EventUtil::AF_UNSPEC ): bool Resolves the DNS name hostname, look ... lback with an error event. If it succeeds, it launches a connection attempt just as EventBufferEvent::connect() would. dns_base is optional. May be null , or an object created with EventDnsBase::__construct() . For asynchronous hostname resolving pas ... s a valid event dns base resource. Otherwise the hostname resolving will block. 注意 : EventDnsBase is available only if Event configured --with-ev ...
-
https://man.mtool.work/php/8.3/eventbufferevent.connecthost.html
- The XMLDiff\Base class 6571
- « インストール手順 XMLDiff\Base::__construct » PHP Manual XMLDiff The XMLDiff\Base class 検索 The XMLDiff\Base class (PECL xmldiff >= 0.8.0) はじめに Base abstract class for all the comparsion classes in the extension. クラス概要 class XMLD
... iff\Base { /* メソッド */ public function __construct ( string $nsname ) abstract public function diff ( mixed $from , mixed $to ): ... mixed abstract public function merge ( mixed $src , mixed $diff ): mixed } 目次 XMLDiff\Base::__construct — Constructor XMLDiff\Base::diff — Produce diff of two XML documents XMLDiff\Base::merge — Produce new XML do ... cument based on diff 関連キーワード: XMLDiff Base mixed class diff construct abstract function merge Produce インストール 手順 Search ...
-
https://man.mtool.work/php/8.3/class.xmldiff-base.html