« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 103 for first name (0.004 sec.)
first (357), name (1733)
array_column — 入力配列から単一のカラムの値を返す | PHP 8.3 11404
array_column (PHP 5 >= 5.5.0, PHP 7, PHP 8) array_column — 入力配列から単一のカラムの値を返す 説明 function array_column ( array $array , int | string | null $column_key , int | string | null $index_key = null ): array array_column() は、 配 ... ードセットからのファーストネームの取得 <?php // データベースから返ってきたレコードセットの例 $records = [ [ 'id' => 2135 , 'first_name' => 'John' , 'last_name' => 'Doe' , ], [ 'id' => 3245 , 'first_name' => 'Sally' , 'last_name' => 'Smith' , ], [ 'id' ... => 5342 , 'first_name' => 'Jane' , 'last_name' => 'Jones' , ], [ 'id' => 5623 , 'first_name' => 'Peter' , 'last_name' => 'Doe' , ] ]; $firs ... t_names = array_column ( $records , 'first_name' ); print_r ( $first_names ); ?> 上の例の出力は以下となります。 Array ( [0] => Jo ...
https://man.mtool.work/php/8.3/function.array-column.html
ibase_add_user — Add a user to a security database | PHP 8.3 10296
ibase_add_user (PHP 5, PHP 7 < 7.4.0) ibase_add_user — Add a user to a security database 説明 function ibase_add_user ( resource $service_handle , string $user_name , string $password , string $first_name = ? , string $middle_name = ? , str ... ing $last_name = ? ): bool パラメータ service_handle The handle on the database server service. user_name The login name of the new datab ... ase user. password The password of the new user. first_name The first name of the new database user. middle_name The middle name of the new database user. last_name The last nam ...
https://man.mtool.work/php/8.3/function.ibase-add-user.html
ibase_modify_user — Modify a user to a security database | PHP 8.3 10296
ibase_modify_user (PHP 5, PHP 7 < 7.4.0) ibase_modify_user — Modify a user to a security database 説明 function ibase_modify_user ( resource $service_handle , string $user_name , string $password , string $first_name = ? , string $middle_name ... me = ? , string $last_name = ? ): bool パラメータ service_handle The handle on the database server service. user_name The login name of the database ... user to modify. password The user's new password. first_name The user's new first name. middle_name The user's new middle name. last_name The user's new last name. 戻り値 成功した ...
https://man.mtool.work/php/8.3/function.ibase-modify-user.html
rrd_first — Gets the timestamp of the first sample from rrd file | PHP 8.3 9651
rrd_first (PECL rrd >= 0.9.0) rrd_first — Gets the timestamp of the first sample from rrd file 説明 function rrd_first ( string $file , int $raaindex = 0 ): int Returns the first data sample from the specified RRA of the RRD file. パラメータ ... file RRD database file name. raaindex The index number of the RRA that is to be examined. Default value is 0. 戻り値 Integer number of unix timestamp, ...
https://man.mtool.work/php/8.3/function.rrd-first.html
array_key_first — 配列の最初のキーを得る | PHP 8.3 9567
array_key_first (PHP 7 >= 7.3.0, PHP 8) array_key_first — 配列の最初のキーを得る 説明 function array_key_first ( array $array ): int | string | null 与えられた array の最初のキーを返します。 これは内部的な配列のポインタに影響を与えません。 ... 配列 戻り値 配列が空でなければ、 array の最初のキーを返します。 そうでなければ、 null を返します。 例 例1 基本的な array_key_first() 関数の使い方 <?php $array = [ 'a' => 1 , 'b' => 2 , 'c' => 3 ]; $firstKey = array_key_first ( $array ); var_dump ( $firs ... この関数は、効率が良く、かつ内部ポインタを変更しないポリフィルとして書かれました。 <?php if (! function_exists ( 'array_key_first' )) { function array_key_first (array $arr ) { foreach( $arr as $key => $unused ) { return $key ; } return NULL ; } } ?> 参 ... タを先頭の要素にセットする 他のマニュアルの関連ページ Linux JM gdbm(3) Django validators Linux JM praliases(8) Linux JM nbp_name(3) Python zoneinfo Linux JM ypmatch(1) ...
https://man.mtool.work/php/8.3/function.array-key-first.html
マジックメソッド | PHP 8.3 9453
マジックメソッド マジックメソッドは、 ある動作がオブジェクトに対して行われた場合に、 PHP のデフォルトの動作を上書きする特別なメソッドです。 警告 __ で始まる全てのメソッド名は、 PHP によって予約されています。 よって、PHP の動作を上書きするの ... PHP 7.4.0 以降で利用できます。 例1 Serialize と unserialize <?php class Connection { protected $link ; private $dsn , $username , $password ; public function __construct ( $dsn , $username , $password ) { $this -> dsn = $dsn ; $this -> username = $us ... ername ; $this -> password = $password ; $this -> connect (); } private function connect () { $this -> link = new PDO ( $this -> ... invoke (array $a , array $b ): int { return $a [ $this -> key ] <=> $b [ $this -> key ]; } } $customers = [ [ 'id' => 1 , 'first_name' => 'John' , 'last_name' => 'Do' ], [ 'id' => 3 , 'first_name' => 'Alice' , 'last_name' => 'Gustav' ], [ 'id' => 2 , ...
https://man.mtool.work/php/8.3/language.oop5.magic.html
Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ | PHP 8.3 9379
Yaf_Route_Regex::__construct (Yaf >=1.0.0) Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ 説明 public function Yaf_Route_Regex::__construct ( string $match , array $route , array $map = ? , array $verify = ? , string $rever ... 例 <?php /** * Add a regex route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/([^/]+)/([^/])+#" , //match request uri leading "/product" array( 'controller' => "pr ... oduct" , //route to product controller, ), array( 1 => "name" , // now you can call $request->getParam("name") 2 => "id" , // to get the first captrue in the match pattern. ) ) ); ?> ... result as controller name ), array( 1 => "name" , // now you can call $request->getParam("name") 2 => "id" , // to get the first captrue in the match pattern. ) ) ); ?> 例3 Yaf_Route_Regex と名前付きキャプチャグループ (2.3.0 以降) の例 <?php /** * Use ...
https://man.mtool.work/php/8.3/yaf-route-regex.construct.html
SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object | PHP ... 8981
SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory obj ... ect. パラメータ name The name of the shared memory object. 注意 : If the name already exists, it must be able to be opened by the current user ... tion objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ( json_encode (ar ... ray( "name" => "my_report.txt" ))); ?> 参考 SyncSharedMemory::first() - Check to see if the object is the first instance system-wide of named shared memory SyncSharedMemory::size() - Returns ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
usort — ユーザー定義の比較関数を使用して、配列を値でソートする | PHP 8.3 8548
usort (PHP 4, PHP 5, PHP 7, PHP 8) usort — ユーザー定義の比較関数を使用して、配列を値でソートする 説明 function usort ( array &$array , callable $callback ): true 順序を決めるユーザー定義の比較関数により、 array をその値でソートします。 注意 ... ンデックスへの参照を保持しています。 例3 usort() でオブジェクトのメンバ関数を使用する例 <?php class TestObj { public string $name ; function __construct ( $name ) { $this -> name = $name ; } /* これは、比較用のstaticメソッドです */ static function cmp_ ... obj ( $a , $b ) { return strtolower ( $a -> name ) <=> strtolower ( $b -> name ); } } $a [] = new TestObj ( "c" ); $a [] = new TestObj ( "b" ); $a [] = new TestObj ( "d" ) ... たがった複合的な値を明快に比較する用途に使えます。 以下の例は、 $people を last name で比較し、 それが一致するものについては first name で比較します。 <?php $people [ 0 ] = [ 'first' => 'Adam' , 'last' => 'West' ]; $people [ 1 ] = [ 'first' => 'Alec' , ...
https://man.mtool.work/php/8.3/function.usort.html
Deprecated Features | PHP 8.3 8204
Deprecated Features PHP Core Using "namespace" as a class constant name Declaring a class constant named namespace is now deprecated. namespace is a semi-reserved keyword, and the name is being reserved for possible future syntax such as a ... ::namespace pseudo-constant analogous to ::class . Methods and static properties named namespace are not affected. Rename the con ... stant, for example to NAMESPACE_NAME . Returning from a finally block Using the return statement inside a finally block is now deprecated, and emits ... _a() and is_subclass_of() with a string when allow_string is false Calling is_a() or is_subclass_of() with a string as the first argument while allow_string is false is now deprecated. In that case the functions always return false , even when the cla ...
https://man.mtool.work/php/8.3/migration86.deprecated.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT