« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 7 of about 7 for concat (0.002 sec.)
sodium_crypto_stream_xchacha20_xor_ic — nonce と秘密鍵を使ってメッセージを暗号... 11487
sodium_crypto_stream_xchacha20_xor_ic (PHP 8 >= 8.2.0) sodium_crypto_stream_xchacha20_xor_ic — nonce と秘密鍵を使ってメッセージを暗号化する(認証なし) 説明 function sodium_crypto_stream_xchacha20_xor_ic ( #[ \SensitiveParameter ] string $mes ... c ( $left , $n2 , 0 , $key ); $stream7_right = sodium_crypto_stream_xchacha20_xor_ic ( $right , $n2 , 1 , $key ); $stream7_concat = $stream7_left . $stream7_right ; var_dump ( strlen ( $stream7_concat )); var_dump ( $stream7_unified === $stream7_concat ...
https://man.mtool.work/php/8.3/function.sodium-crypto-stream-xchacha20-xor-ic.ht...
Operator Overloading Magic Methods | PHP 8.3 11269
Operator Overloading Magic Methods The operator overloading extension allows you to define how an object reacts to operators. This is done by implementing the following magic methods: Arithmetic operators: $a::__add($b) $a::__sub($b) $a::__ ... a::__assign_bw_and($b) $a::__assign_bw_or($b) $a::__assign_bw_xor($b) $a::__assign_sl($b) $a::__assign_sr($b) $a::__assign_concat($b) Bitwise operators: $a::__bw_and($b) $a::__bw_or($b) $a::__bw_xor($b) $a::__bw_not() $a::__sl($b) $a::__sr($b) Comparis ... ting and decrementing operators: $a::__pre_inc() $a::__post_inc() $a::__pre_dec() $a::__post_dec() String operators: $a::__concat($b) Operator Overloading Examples The following is the class that is used in the testing of the operator overloading exten ... $val ; } public function __assign_bw_or ( mixed $val ): mixed { return $this -> value |= $val ; } public function __assign_concat ( mixed $val ): string { return $this -> value .= $val ; } public function __assign_div ( mixed $val ): mixed { return $th ...
https://man.mtool.work/php/8.3/operator.overloading.html
新機能 | PHP 8.3 10432
新機能 PHP コア パイプ演算子 パイプ演算子( |> ) が追加されました。 <?php $result = "Hello World" |> strlen (...); print $result . PHP_EOL ; // Prints "11" 定数式にクロージャ 定数式に、 クロージャ や 第一級callable を指定できるようになりまし ... 部の IDE や静的解析ツールが発生させる可能性がある、 診断メッセージを抑制する目的に使えます。 <?php #[ \NoDiscard ] function concat ( string $a , string $b ): string { return $a . $b ; } // Warning: The return value of function concat() should either be ... used or // intentionally ignored by casting it as (void) in xxx.php concat ( "a" , "b" ); // 戻り値が代入されているため、警告は出ません $results = concat ( "a" , "b" ); // (void) キャストが使われて ... いるので、警告は出ません ( void ) concat ( "a" , "b" ); 定数に対するアトリビュート クラス定数でないコンパイル時定数 (例: define('MY_CONST', 1); ではなく、 const MY ...
https://man.mtool.work/php/8.3/migration85.new-features.html
Lua::call — Lua 関数を呼び出す | PHP 8.3 8360
Lua::call Lua::__call (PECL lua >=0.9.0) Lua::call -- Lua::__call — Lua 関数を呼び出す 説明 public function Lua::call ( callable $lua_func , array $args = ? , int $use_self = 0 ): mixed public function Lua::__call ( callable $lua_func , arr ... y( "Lua" , "geiliable\n" )); $lua -> dummy ( "Lua" , "geiliable" ); // __call() var_dump ( $lua -> call (array( "table" , "concat" ), array(array( 1 => 1 , 2 => 2 , 3 => 3 ), "-" ))); ?> 上の例の出力は以下となります。 Lua,geiliable Lua,geiliable string ...
https://man.mtool.work/php/8.3/lua.call.html
DOMXPath::quote — XPath 式で使用できるよう、文字列のまわりに引用符を付ける | PH... 8160
DOMXPath::quote (PHP 8 >= 8.4.0) DOMXPath::quote — XPath 式で使用できるよう、文字列のまわりに引用符を付ける 説明 public static function DOMXPath::quote ( string $str ): string XPath 式で使用できるよう、 str のまわりに引用符を付けます。 パラ ... る文字列もサポートします: <?php echo DOMXPath :: quote ( "'different' \"quote\" styles" ); ?> 上の例の出力は以下となります。 concat("'different' ",'"quote" styles') 参考 DOMXPath::evaluate() - 与えられた XPath 式を評価し、可能であれば結果を返す DOMXPath: ...
https://man.mtool.work/php/8.3/domxpath.quote.html
SQLインジェクション | PHP 8.3 6925
SQLインジェクション SQLインジェクションは、 攻撃者が動的なSQLクエリを組み立てる責任があるアプリケーションコードの欠陥を突く手法です。 攻撃者は、アプリケーションの権限が必要な部分にアクセスでき、 データベースからすべての情報を引き出し、既存の ... リの静的な部分は、以下のように全てのパスワードを外部にもらす別の SELECT 文と組み合わせることができます。 ' union select '1', concat(uname||'-'||passwd) as name, '1971-01-01', '0' from usertable; -- UPDATE や INSERT 文も、 データベースを攻撃するために使用 ...
https://man.mtool.work/php/8.3/security.database.sql-injection.html
パーサートークンの一覧 | PHP 8.3 6925
パーサートークンの一覧 PHP 言語の種々の部分は、内部的に トークン で表現されています。 不正なトークンのシーケンスが含まれるコードスニペットの場合、 Parse error: syntax error, unexpected token "==", expecting "(" in script.php on line 10." の ... T_COALESCE_EQUAL ( int ) ??= NULL合体代入演算子 (PHP 7.4.0 以降で利用可能) T_COMMENT ( int ) // or #, and /* */ コメント T_CONCAT_EQUAL ( int ) .= 代入演算子 T_CONST ( int ) const クラス定数 T_CONSTANT_ENCAPSED_STRING ( int ) "foo" or 'bar' 文字列構文 ...
https://man.mtool.work/php/8.3/tokens.html
PREV 1 NEXT