« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for orig (0.002 sec.)
PHP のコールバック 11231
« FFI の基本的な使い方 PHP/FFI/事前ロードの完全な例 » PHP Manual 例 PHP のコールバック 検索 PHP のコールバック PHP のクロージャを、関数ポインタ型のネイティブ変数に代入したり、 関数の引数として渡したりできます。 例1 PHP の Closure を C の関数 ... nd_write_func_t)(const char *str, size_t str_length); extern zend_write_func_t zend_write; " ); echo "Hello World 1!\n" ; $orig_zend_write = clone $zend -> zend_write ; $zend -> zend_write = function( $str , $len ) { global $orig_zend_write ; $orig_z ... end_write ( "{\n\t" , 3 ); $ret = $orig_zend_write ( $str , $len ); $orig_zend_write ( "}\n" , 2 ); return $ret ; }; echo "Hello World 2!\n" ; $zend -> zend_write ... = $orig_zend_write ; echo "Hello World 3!\n" ; ?> 上の例の出力は以下となります。 Hello World 1! { Hello World 2! } Hello World 3! ...
https://man.mtool.work/php/8.3/ffi.examples-callback.html
PHP のコールバック 11161
« FFI の基本的な使い方 PHP/FFI/事前ロードの完全な例 » PHP Manual 例 PHP のコールバック 検索 PHP のコールバック PHP のクロージャを、関数ポインタ型のネイティブ変数に代入したり、 関数の引数として渡したりできます。 例1 PHP の Closure を C の関数 ... nd_write_func_t)(const char *str, size_t str_length); extern zend_write_func_t zend_write; " ); echo "Hello World 1!\n" ; $orig_zend_write = clone $zend -> zend_write ; $zend -> zend_write = function( $str , $len ) { global $orig_zend_write ; $orig_z ... end_write ( "{\n\t" , 3 ); $ret = $orig_zend_write ( $str , $len ); $orig_zend_write ( "}\n" , 2 ); return $ret ; }; echo "Hello World 2!\n" ; $zend -> zend_write ... = $orig_zend_write ; echo "Hello World 3!\n" ; ?> 上の例の出力は以下となります。 Hello World 1! { Hello World 2! } Hello World 3! ...
https://man.mtool.work/php/8.3/ffi.examples-callback.html
再サンプリングを行いイメージの一部をコピー、伸縮する 10913
« imagecopymergegray imagecopyresized » PHP Manual GD および Image 関数 再サンプリングを行いイメージの一部をコピー、伸縮する 検索 imagecopyresampled (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecopyresampled — 再サンプリングを行いイメージの一 ... = 200 ; $height = 200 ; // コンテントタイプ header ( 'Content-Type: image/jpeg' ); // 新規サイズを取得します list( $width_orig , $height_orig ) = getimagesize ( $filename ); $ratio_orig = $width_orig / $height_orig ; if ( $width / $height > $ratio_o ... rig ) { $width = $height * $ratio_orig ; } else { $height = $width / $ratio_orig ; } // 再サンプル $image_p = imagecreatetruecolor ( $width , $height ); $image = ... imagecreatefromjpeg ( $filename ); imagecopyresampled ( $image_p , $image , 0 , 0 , 0 , 0 , $width , $height , $width_orig , $height_orig ); // 出力 imagejpeg ( $image_p , null , 100 ); ?> 上の例の出力は、 たとえば以下のようになります。 注意 注意 ...
https://man.mtool.work/php/8.3/function.imagecopyresampled.html
再サンプリングを行いイメージの一部をコピー、伸縮する 10913
« imagecopymergegray imagecopyresized » PHP Manual GD および Image 関数 再サンプリングを行いイメージの一部をコピー、伸縮する 検索 imagecopyresampled (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecopyresampled — 再サンプリングを行いイメージの一 ... = 200 ; $height = 200 ; // コンテントタイプ header ( 'Content-Type: image/jpeg' ); // 新規サイズを取得します list( $width_orig , $height_orig ) = getimagesize ( $filename ); $ratio_orig = $width_orig / $height_orig ; if ( $width / $height > $ratio_o ... rig ) { $width = $height * $ratio_orig ; } else { $height = $width / $ratio_orig ; } // 再サンプル $image_p = imagecreatetruecolor ( $width , $height ); $image = ... imagecreatefromjpeg ( $filename ); imagecopyresampled ( $image_p , $image , 0 , 0 , 0 , 0 , $width , $height , $width_orig , $height_orig ); // 出力 imagejpeg ( $image_p , null , 100 ); ?> 上の例の出力は、 たとえば以下のようになります。 注意 注意 ...
https://man.mtool.work/php/8.3/function.imagecopyresampled.html
渡された文字列が、指定した正規化を適用済みかどうかを調べる 9409
« Normalizer::getRawDecomposition Normalizer::normalize » PHP Manual Normalizer 渡された文字列が、指定した正規化を適用済みかどうかを調べる 検索 Normalizer::isNormalized normalizer_is_normalized (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1. ... ITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A" ; // 'COMBINING RING ABOVE' (U+030A) $char_orig = 'A' . $char_combining_ring_above ; $char_norm = normalizer_normalize ( 'A' . $char_combining_ring_above , Normalizer :: ... FORM_C ); echo ( normalizer_is_normalized ( $char_orig , Normalizer :: FORM_C ) ) ? "normalized" : "not normalized" ; echo '; ' ; echo ( normalizer_is_normalized ( $char_norm , ... ITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A" ; // 'COMBINING RING ABOVE' (U+030A) $char_orig = 'A' . $char_combining_ring_above ; $char_norm = Normalizer :: normalize ( 'A' . $char_combining_ring_above , Normalizer ...
https://man.mtool.work/php/8.3/normalizer.isnormalized.html
渡された文字列が、指定した正規化を適用済みかどうかを調べる 9409
« Normalizer::getRawDecomposition Normalizer::normalize » PHP Manual Normalizer 渡された文字列が、指定した正規化を適用済みかどうかを調べる 検索 Normalizer::isNormalized normalizer_is_normalized (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1. ... ITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A" ; // 'COMBINING RING ABOVE' (U+030A) $char_orig = 'A' . $char_combining_ring_above ; $char_norm = normalizer_normalize ( 'A' . $char_combining_ring_above , Normalizer :: ... FORM_C ); echo ( normalizer_is_normalized ( $char_orig , Normalizer :: FORM_C ) ) ? "normalized" : "not normalized" ; echo '; ' ; echo ( normalizer_is_normalized ( $char_norm , ... ITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A" ; // 'COMBINING RING ABOVE' (U+030A) $char_orig = 'A' . $char_combining_ring_above ; $char_norm = Normalizer :: normalize ( 'A' . $char_combining_ring_above , Normalizer ...
https://man.mtool.work/php/8.3/normalizer.isnormalized.html
HTML エンティティを対応する文字に変換する 7393
« hex2bin htmlentities » PHP Manual String 関数 HTML エンティティを対応する文字に変換する 検索 html_entity_decode (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) html_entity_decode — HTML エンティティを対応する文字に変換する 説明 function html_entity ... TUTE | ENT_HTML401 に変更されました。 8.0.0 encoding は、nullable になりました。 例 例1 HTML エンティティのデコード <?php $orig = "I'll \"walk\" the <b>dog</b> now" ; $a = htmlentities ( $orig ); $b = html_entity_decode ( $a ); echo $a , PHP_EOL ; // ...
https://man.mtool.work/php/8.3/function.html-entity-decode.html
HTML エンティティを対応する文字に変換する 7393
« hex2bin htmlentities » PHP Manual String 関数 HTML エンティティを対応する文字に変換する 検索 html_entity_decode (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) html_entity_decode — HTML エンティティを対応する文字に変換する 説明 function html_entity ... TUTE | ENT_HTML401 に変更されました。 8.0.0 encoding は、nullable になりました。 例 例1 HTML エンティティのデコード <?php $orig = "I'll \"walk\" the <b>dog</b> now" ; $a = htmlentities ( $orig ); $b = html_entity_decode ( $a ); echo $a , PHP_EOL ; // ...
https://man.mtool.work/php/8.3/function.html-entity-decode.html
定義済み定数 7145
« インストール手順 SVN 関数 » PHP Manual SVN 定義済み定数 検索 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SVN_REVISION_H ... イティブのファイルシステムです。 予約されているプロパティの定数 SVN_PROP_REVISION_DATE ( string ) svn:date SVN_PROP_REVISION_ORIG_DATE ( string ) svn:original-date SVN_PROP_REVISION_AUTHOR ( string ) svn:author SVN_PROP_REVISION_LOG ( string ) svn:log ...
https://man.mtool.work/php/8.3/svn.constants.html
定義済み定数 7092
« インストール手順 SVN 関数 » PHP Manual SVN 定義済み定数 検索 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SVN_REVISION_H ... イティブのファイルシステムです。 予約されているプロパティの定数 SVN_PROP_REVISION_DATE ( string ) svn:date SVN_PROP_REVISION_ORIG_DATE ( string ) svn:original-date SVN_PROP_REVISION_AUTHOR ( string ) svn:author SVN_PROP_REVISION_LOG ( string ) svn:log ...
https://man.mtool.work/php/8.3/svn.constants.html
PREV 1 2 NEXT