« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 93 for token (0.004 sec.)
token_get_all — 指定したソースを PHP トークンに分割する | PHP 8.3 10215
token_get_all (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) token_get_all — 指定したソースを PHP トークンに分割する 説明 function token_get_all ( string $code , int $flags = 0 ): array token_get_all() は指定した文字列 code をパースし、Zend engine の ... ナにより PHP 言語のトークンに分割します。 パーサートークンの一覧を得るには、 パーサートークンの一覧 を参照するか、 あるいは token_name() でトークン値を文字列表現に 変換します。 パラメータ code パースする PHP ソース。 flags 以下のフラグが使えます。 TOKE ... ンのインデックスを 0 番目の要素、トークンの文字列表現を 1 番目の要素、 行番号を 2 番目の要素とする配列が含まれます。 例 例1 token_get_all() の例 <?php $tokens = token_get_all ( '<?php echo; ?>' ); foreach ( $tokens as $token ) { if ( is_array ( $token ... )) { echo "Line { $token [ 2 ]} : " , token_name ( $token [ 0 ]), " (' { $token [ 1 ]} ')" , PHP_EOL ; } } ?> 上の例の出力は、 たとえば以下のように ...
https://man.mtool.work/php/8.3/function.token-get-all.html
米Yahoo! の位置情報プラットフォーム FireEagle の例 | PHP 8.3 9805
米Yahoo! の位置情報プラットフォーム FireEagle の例 <?php $req_url = 'https://fireeagle.yahooapis.com/oauth/request_token' ; $authurl = 'https://fireeagle.yahoo.net/oauth/authorize' ; $acc_url = 'https://fireeagle.yahooapis.com/oauth/access_ ... key' ; $conssec = 'your_consumer_secret' ; session_start (); // セッションの state の値が1の場合、次のリクエストには oauth_token の値が含まれているはずである if(!isset( $_GET [ 'oauth_token' ]) && $_SESSION [ 'state' ]== 1 ) $_SESSION [ 'state' ] = 0 ... onskey , $conssec , OAUTH_SIG_METHOD_HMACSHA1 , OAUTH_AUTH_TYPE_URI ); $oauth -> enableDebug (); if(!isset( $_GET [ 'oauth_token' ]) && ! $_SESSION [ 'state' ]) { $request_token_info = $oauth -> getRequestToken ( $req_url ); $_SESSION [ 'secret' ] = $ ... request_token_info [ 'oauth_token_secret' ]; $_SESSION [ 'state' ] = 1 ; header ( 'Location: ' . $authurl . '?oauth_token=' . $request_t ...
https://man.mtool.work/php/8.3/oauth.examples.fireeagle.html
The Parle\Token class | PHP 8.3 9606
The Parle\Token class (PECL parle >= 0.5.2) はじめに This class represents a token. Lexer returns instances of this class. クラス概要 class Parle\Token { /* 定数 */ const int EOI = 0 ; const int UNKNOWN = -1 ; const int SKIP = -2 ; /* プロパ ... ティ */ public int $ id ; public string $ value ; /* メソッド */ } プロパティ id Token id. value Token value. 定義済み定数 Parle\Token::EOI End of input token id. Parle\Token::UNKNOWN Unknown token id. Parle\T ... oken::SKIP Skip token id. 他のマニュアルの関連ページ Python token Docker Registry リファレンスへのリンク FastAPI ヘッダーのパラメータ DuckDB Dep ...
https://man.mtool.work/php/8.3/class.parle-token.html
OAuth::getAccessToken — アクセストークンを取得する | PHP 8.3 9567
OAuth::getAccessToken (PECL OAuth >= 0.99.1) OAuth::getAccessToken — アクセストークンを取得する 説明 public function OAuth::getAccessToken ( string $access_token_url , string $verifier_token = ? , string $http_method = ? ): array アクセスト ... ークン、secret そして追加のレスポンスパラメータをサービスプロバイダから取得します。 パラメータ access_token_url アクセストークン API の URL。 auth_session_handle 認証セッションハンドル。このパラメータはコア OAuth 1.0 仕様を引用して ... いませんが、大手プロバイダでは実装されているでしょう。 詳細な情報は » ScalableOAuth を参照ください。 verifier_token 1.0a をサポートするサービスプロバイダでは、リクエストトークンとアクセストークンを交換する際に verifier_token を渡す必要があ ... ります。 verifier_token が $_GET あるいは $_POST に存在する場合は自動的にそれが渡され、 呼び出し側が verifier_token を指定する必要はありません (通 ...
https://man.mtool.work/php/8.3/oauth.getaccesstoken.html
Parsing and lexing | PHP 8.3 9408
Parsing and lexing はじめに 警告 この拡張モジュールは、 実験的 なものです。この拡張モジュールの動作・ 関数名・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 このモジュールは自己 ... le\Lexer::advance — Process next lexer rule Parle\Lexer::build — Finalize the lexer rule set Parle\Lexer::callout — Define token callback Parle\Lexer::consume — Pass the data for processing Parle\Lexer::dump — Dump the state machine Parle\Lexer::getTo ... ken — Retrieve the current token Parle\Lexer::insertMacro — Insert regex macro Parle\Lexer::push — Add a lexer rule Parle\Lexer::reset — Reset lexer Parle\ ... RLexer::advance — Process next lexer rule Parle\RLexer::build — Finalize the lexer rule set Parle\RLexer::callout — Define token callback Parle\RLexer::consume — Pass the data for processing Parle\RLexer::dump — Dump the state machine Parle\RLexer::ge ...
https://man.mtool.work/php/8.3/book.parle.html
Lexer examples | PHP 8.3 9368
Lexer examples 例1 Tokenize comma separated integer list <?php use Parle\Token ; use Parle\Lexer ; use Parle\LexerException ; /* name => id */ $token = array( "COMMA" => 1 , "CRLF" => 2 , "DECIMAL" => 3 , ); /* id => name */ $tokenIdToName ... = array_flip ( $token ); $lex = new Lexer ; $lex -> push ( "[\x2c]" , $token [ "COMMA" ]); $lex -> push ( "[\r][\n]" , $token [ "CRLF" ]); $lex ... -> push ( "[\d]+" , $token [ "DECIMAL" ]); $lex -> build (); $in = "0,1,2\r\n3,42,5\r\n6,77,8\r\n" ; $lex -> consume ( $in ); do { $lex -> advance () ... ; $tok = $lex -> getToken (); if ( Token :: UNKNOWN == $tok -> id ) { throw new LexerException ( "Unknown token ' { $tok -> value } ' at offset { $l ...
https://man.mtool.work/php/8.3/parle.examples.lexer.html
The Parle\Parser class | PHP 8.3 8971
The Parle\Parser class (PECL parle >= 0.5.1) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream. クラス概要 class Parle\Parser { /* 定数 */ const int ACTION ... ; const int ACTION_ACCEPT = 4 ; const int ERROR_SYNTAX = 0 ; const int ERROR_NON_ASSOCIATIVE = 1 ; const int ERROR_UNKNOWN_TOKEN = 2 ; /* プロパティ */ public int $ action = 0 ; public int $ reduceId = 0 ; /* メソッド */ public function advance (): vo ... on precedence ( string $tok ): void public function push ( string $name , string $rule ): int public function reset ( int $tokenId = ? ): void public function right ( string $tok ): void public function sigil ( int $idx ): string public function sigil ... Count (): int public function sigilName ( int $idx ): string public function token ( string $tok ): void public function tokenId ( string $tok ): int public function trace (): string public function valida ...
https://man.mtool.work/php/8.3/class.parle-parser.html
The Parle\RParser class | PHP 8.3 8931
The Parle\RParser class (PECL parle >= 0.7.0) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\RLexer instance is required to deliver the token stream. クラス概要 class Parle\RParser { /* 定数 */ const int ACT ... ; const int ACTION_ACCEPT = 4 ; const int ERROR_SYNTAX = 0 ; const int ERROR_NON_ASSOCIATIVE = 1 ; const int ERROR_UNKNOWN_TOKEN = 2 ; /* プロパティ */ public int $ action = 0 ; public int $ reduceId = 0 ; /* メソッド */ public function advance (): vo ... on precedence ( string $tok ): void public function push ( string $name , string $rule ): int public function reset ( int $tokenId = ? ): void public function right ( string $tok ): void public function sigil ( int $idx = ? ): string public function s ... igilCount (): int public function sigilName ( int $idx ): string public function token ( string $tok ): void public function tokenId ( string $tok ): int public function trace (): string public function valida ...
https://man.mtool.work/php/8.3/class.parle-rparser.html
OAuth::getRequestToken — リクエストトークンを取得する | PHP 8.3 8865
OAuth::getRequestToken (PECL OAuth >= 0.99.1) OAuth::getRequestToken — リクエストトークンを取得する 説明 public function OAuth::getRequestToken ( string $request_token_url , string $callback_url = ? , string $http_method = ? ): array リクエ ... ストトークン、secret そして追加のレスポンスパラメータをサービスプロバイダから取得します。 パラメータ request_token_url リクエストトークン API の URL。 callback_url OAuth コールバック URL。 callback_url に空の値を渡すと、"oob" に設定されて ... false ではなく null を返していました。 PECL oauth 0.99.9 callback_url パラメータが追加されました。 例 例1 OAuth::getRequestToken() の例 <?php try { $oauth = new OAuth ( OAUTH_CONSUMER_KEY , OAUTH_CONSUMER_SECRET ); $request_token_info = $oauth -> getR ... equestToken ( "https://example.com/oauth/request_token" ); if(!empty( $request_token_info )) { print_r ( $request_token_info ); } else ...
https://man.mtool.work/php/8.3/oauth.getrequesttoken.html
strtok — 文字列をトークンに分割する | PHP 8.3 8733
strtok (PHP 4, PHP 5, PHP 7, PHP 8) strtok — 文字列をトークンに分割する 説明 function strtok ( string $string , string $token ): string | false 代替のシグネチャ (名前付き引数をサポートしていません): function strtok ( string $token ): string ... | false strtok() は文字列 ( string ) を 何らかの文字 token によって区切られている小さな文字列 (トークン) に分割します。 "This is an example string" のような文字列がある場合、 空白文 ... 字を token に指定することでこの文字列を個々の単語に分割することができます。 strtok は最初のコールの時のみ string 引数を使用することに ... 注意してください。 strtok は、文字列のどこにいるのかの情報を保持しているため、 2回目以降のコールでは token のみが必要です。 最初からやりなおす場合や新しい文字列をトークンに分割する場合、 初期化するために再度 string 引数を指定して ...
https://man.mtool.work/php/8.3/function.strtok.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT