« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for Drink (0.001 sec.)
list — 配列と同様の形式で、複数の変数への代入を行う | PHP 8.3 11924
list (PHP 4, PHP 5, PHP 7, PHP 8) list — 配列と同様の形式で、複数の変数への代入を行う 説明 function list ( mixed $var , mixed ...$vars = ? ): array array() と同様に、 この関数は実際には関数ではなく言語構造です。 list() は、 この関数は、配列 ... ようになります。 例 例1 list() の例 <?php $info = array( 'コーヒー' , '茶色' , 'カフェイン' ); // すべての変数の取得 list( $drink , $color , $power ) = $info ; echo " $drink の色は $color で、 $power が含まれています。\n" ; // 一部の変数の取得 list( $d ... rink , , $power ) = $info ; echo " $drink には $power が含まれています。\n" ; // 三番目のみの取得 list( , , $power ) = $info ; echo " $power 欲しい!\n" ; // list() ...
https://man.mtool.work/php/8.3/function.list.html
DateTime::__serialize — DateTime をシリアライズする | PHP 8.3 7980
DateTime::__serialize DateTimeImmutable::__serialize DateTimeInterface::__serialize (PHP 8 >= 8.2.0) DateTime::__serialize -- DateTimeImmutable::__serialize -- DateTimeInterface::__serialize — DateTime をシリアライズする 説明 public functio ... eInterface :: W3C ), 'timestamp' => $this -> getTimestamp (), 'timezone' => $this -> getTimeZone ()-> getName (), 'to' => 'Drink a cup of coffee' , ]; } } $date = new CustomDateTimeImmutable ( '2025-03-27' ); var_dump ( serialize ( $date )); 上の例の出 ... table":4:{s:4:"date";s:25:"2025-03-27T00:00:00+00:00";s:9:"timestamp";i:1743033600;s:8:"timezone";s:3:"UTC";s:2:"to";s:21:"Drink a cup of coffee";}" 注意 警告 __serialize() が定義されているのに __unserialize() が定義されていない場合、 カスタムの DateT ...
https://man.mtool.work/php/8.3/datetime.serialize.html
DateTime::__unserialize — Datetime をアンシリアライズする | PHP 8.3 7980
DateTime::__unserialize DateTimeImmutable::__unserialize DateTimeInterface::__unserialize (PHP 8 >= 8.2.0) DateTime::__unserialize -- DateTimeImmutable::__unserialize -- DateTimeInterface::__unserialize — Datetime をアンシリアライズする 説明 ... table":4:{s:4:"date";s:25:"2025-03-27T00:00:00+00:00";s:9:"timestamp";i:1743033600;s:8:"timezone";s:3:"UTC";s:2:"to";s:21:"Drink a cup of coffee";}' ; var_dump ( unserialize ( $serializedData )); 上の例の出力は以下となります。 Time to `Drink a cup of ...
https://man.mtool.work/php/8.3/datetime.unserialize.html
PREV 1 NEXT