Results of 1 - 10 of about 2471 for example (0.010 sec.)
- サンプル 9041
- « 関数・メソッド 変更履歴 » PHP Manual 索引 サンプル 検索 サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力
... する (配列要素) Example#4 - 制御構造 および 関数の使用例 Example#5 - HTML および PHP モードの両方を混在させる Example#6 - 簡単な HTML フォーム Exa ... mple#7 - フォームからのデータを出力する Example#8 - Debian で Apache httpd 2 と組み合わせるインストール例 Example#9 - PHP インストール後に Apache httpd を再起動する Examp ... le#10 - 追加の PHP パッケージを探す方法 Example#11 - PHP と MySQL、cURL のインストール Example#12 - DNF インストールの例 Example#13 - PHP のインストール後に Apache httpd ...
-
https://man.mtool.work/php/8.3/indexes.examples.html
- サンプル 9041
- « 関数・メソッド 変更履歴 » PHP Manual 索引 サンプル 検索 サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力
... する (配列要素) Example#4 - 制御構造 および 関数の使用例 Example#5 - HTML および PHP モードの両方を混在させる Example#6 - 簡単な HTML フォーム Exa ... mple#7 - フォームからのデータを出力する Example#8 - Debian で Apache httpd 2 と組み合わせるインストール例 Example#9 - PHP インストール後に Apache httpd を再起動する Examp ... le#10 - 追加の PHP パッケージを探す方法 Example#11 - PHP と MySQL、cURL のインストール Example#12 - DNF インストールの例 Example#13 - PHP のインストール後に Apache httpd ...
-
https://man.mtool.work/php/8.3/indexes.examples.html
- 複数の MIME ヘッダフィールドを一度にデコードする 5532
- « iconv_mime_decode iconv_mime_encode » PHP Manual iconv 関数 複数の MIME ヘッダフィールドを一度にデコードする 検索 iconv_mime_decode_headers (PHP 5, PHP 7, PHP 8) iconv_mime_decode_headers — 複数の MIME ヘッダフィールドを一度にデコードする
... 。 例 例1 iconv_mime_decode_headers() の例 <?php $headers_string = <<<EOF Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?= To: example@example.com Date: Thu, 1 Jan 1970 00:00:00 +0000 Message-Id: <example@example.com> Received: from localhost (localhost [12 ... 7.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@exa ... g , 0 , "ISO-8859-1" ); print_r ( $headers ); ?> 上の例の出力は以下となります。 Array ( [Subject] => Pr?ung Pr?ung [To] => example@example.com [Date] => Thu, 1 Jan 1970 00:00:00 +0000 [Message-Id] => <example@example.com> [Received] => Array ( [0] => fr ...
-
https://man.mtool.work/php/8.3/function.iconv-mime-decode-headers.html
- 複数の MIME ヘッダフィールドを一度にデコードする 5532
- « iconv_mime_decode iconv_mime_encode » PHP Manual iconv 関数 複数の MIME ヘッダフィールドを一度にデコードする 検索 iconv_mime_decode_headers (PHP 5, PHP 7, PHP 8) iconv_mime_decode_headers — 複数の MIME ヘッダフィールドを一度にデコードする
... 。 例 例1 iconv_mime_decode_headers() の例 <?php $headers_string = <<<EOF Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?= To: example@example.com Date: Thu, 1 Jan 1970 00:00:00 +0000 Message-Id: <example@example.com> Received: from localhost (localhost [12 ... 7.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@exa ... g , 0 , "ISO-8859-1" ); print_r ( $headers ); ?> 上の例の出力は以下となります。 Array ( [Subject] => Pr?ung Pr?ung [To] => example@example.com [Date] => Thu, 1 Jan 1970 00:00:00 +0000 [Message-Id] => <example@example.com> [Received] => Array ( [0] => fr ...
-
https://man.mtool.work/php/8.3/function.iconv-mime-decode-headers.html
- get フックが定義されていたとしても、それを迂回してプロパティの値を返す 4479
- « ReflectionProperty::getName ReflectionProperty::getSettableType » PHP Manual ReflectionProperty get フックが定義されていたとしても、それを迂回してプロパティの値を返す 検索 ReflectionProperty::getRawValue (PHP 8 >= 8.4.0) ReflectionPropert
... Error がスローされます。 取得する実体の値が存在しないためです。 例 例1 ReflectionProperty::getRawValue() の例 <?php class Example { public string $tag { get => strtolower ( $this -> tag ); } } $example = new Example (); $example -> tag = 'PHP' ; $rClas ... s = new \ReflectionClass ( Example ::class); $rProp = $rClass -> getProperty ( 'tag' ); // getフックを経由した値なので、"php" を出力します。 echo $example -> ... tag , PHP_EOL ; echo $rProp -> getValue ( $example ), PHP_EOL ; // フックを迂回するので、"PHP" を出力します。 echo $rProp -> getRawValue ( $example ); ?> 上の例の出力は以下と ...
-
https://man.mtool.work/php/8.3/reflectionproperty.getrawvalue.html
- get フックが定義されていたとしても、それを迂回してプロパティの値を返す 4453
- « ReflectionProperty::getName ReflectionProperty::getSettableType » PHP Manual ReflectionProperty get フックが定義されていたとしても、それを迂回してプロパティの値を返す 検索 ReflectionProperty::getRawValue (PHP 8 >= 8.4.0) ReflectionPropert
... Error がスローされます。 取得する実体の値が存在しないためです。 例 例1 ReflectionProperty::getRawValue() の例 <?php class Example { public string $tag { get => strtolower ( $this -> tag ); } } $example = new Example (); $example -> tag = 'PHP' ; $rClas ... s = new \ReflectionClass ( Example ::class); $rProp = $rClass -> getProperty ( 'tag' ); // getフックを経由した値なので、"php" を出力します。 echo $example -> ... tag , PHP_EOL ; echo $rProp -> getValue ( $example ), PHP_EOL ; // フックを迂回するので、"PHP" を出力します。 echo $rProp -> getRawValue ( $example ); ?> 上の例の出力は以下と ...
-
https://man.mtool.work/php/8.3/reflectionproperty.getrawvalue.html
- set フックが定義されていたとしても、それを迂回してプロパティの値を設定する 4392
- « ReflectionProperty::setAccessible ReflectionProperty::setRawValueWithoutLazyInitialization » PHP Manual ReflectionProperty set フックが定義されていたとしても、それを迂回してプロパティの値を設定する 検索 ReflectionProperty::setRawValue (PH
... rror がスローされます。 なぜなら、設定する生の値がないからです。 例 例1 ReflectionProperty::setRawValue() の例 <?php class Example { public int $age { set { if ( $value <= 0 ) { throw new \InvalidArgumentException (); } $this -> age = $value ; } } } $ex ... ample = new Example (); $rClass = new \ReflectionClass ( Example ::class); $rProp = $rClass -> getProperty ( 'age' ); // フックを経由して値を設 ... 定し、例外がスローされます try { $example -> age = - 2 ; } catch ( InvalidArgumentException ) { echo "InvalidArgumentException for setting property to -2\n" ; } try ...
-
https://man.mtool.work/php/8.3/reflectionproperty.setrawvalue.html
- メールを送信する 4362
- « ezmlm_hash Mailparse » PHP Manual メール 関数 メールを送信する 検索 mail (PHP 4, PHP 5, PHP 7, PHP 8) mail — メールを送信する 説明 function mail ( string $to , string $subject , string $message , array | string $additional_headers = [] ,
... 送信します。 パラメータ to メールの受信者。 » RFC 2822 を満たす書式でなければ なりません。例えば以下のようなものです。 user@example.com user@example.com, anotheruser@example.com User User , Another User subject 送信するメールの表題。 警告 表題は » RFC 20 ... 文字を超える場合のため、wordwrap() を用いる $message = wordwrap ( $message , 70 , "\r\n" ); // 送信する mail ( 'caffeinated@example.com' , 'My Subject' , $message ); ?> 例2 追加ヘッダを付加してメールを送信する 基本ヘッダに加え、MUA に From および Reply-T ... o アドレスを通知する。 <?php $to = 'nobody@example.com' ; $subject = 'the subject' ; $message = 'hello' ; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webm ...
-
https://man.mtool.work/php/8.3/function.mail.html
- メールを送信する 4362
- « ezmlm_hash Mailparse » PHP Manual メール 関数 メールを送信する 検索 mail (PHP 4, PHP 5, PHP 7, PHP 8) mail — メールを送信する 説明 function mail ( string $to , string $subject , string $message , array | string $additional_headers = [] ,
... 送信します。 パラメータ to メールの受信者。 » RFC 2822 を満たす書式でなければ なりません。例えば以下のようなものです。 user@example.com user@example.com, anotheruser@example.com User User , Another User subject 送信するメールの表題。 警告 表題は » RFC 20 ... 文字を超える場合のため、wordwrap() を用いる $message = wordwrap ( $message , 70 , "\r\n" ); // 送信する mail ( 'caffeinated@example.com' , 'My Subject' , $message ); ?> 例2 追加ヘッダを付加してメールを送信する 基本ヘッダに加え、MUA に From および Reply-T ... o アドレスを通知する。 <?php $to = 'nobody@example.com' ; $subject = 'the subject' ; $message = 'hello' ; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webm ...
-
https://man.mtool.work/php/8.3/function.mail.html
- set フックが定義されていたとしても、それを迂回してプロパティの値を設定する 4362
- « ReflectionProperty::setAccessible ReflectionProperty::setRawValueWithoutLazyInitialization » PHP Manual ReflectionProperty set フックが定義されていたとしても、それを迂回してプロパティの値を設定する 検索 ReflectionProperty::setRawValue (PH
... rror がスローされます。 なぜなら、設定する生の値がないからです。 例 例1 ReflectionProperty::setRawValue() の例 <?php class Example { public int $age { set { if ( $value <= 0 ) { throw new \InvalidArgumentException (); } $this -> age = $value ; } } } $ex ... ample = new Example (); $rClass = new \ReflectionClass ( Example ::class); $rProp = $rClass -> getProperty ( 'age' ); // フックを経由して値を設 ... 定し、例外がスローされます try { $example -> age = - 2 ; } catch ( InvalidArgumentException ) { echo "InvalidArgumentException for setting property to -2\n" ; } try ...
-
https://man.mtool.work/php/8.3/reflectionproperty.setrawvalue.html