Results of 1 - 10 of about 36 for indent (0.007 sec.)
- 正規表現検索を行い、コールバック関数を使用して置換を行う 10444
- « preg_replace preg_replace_callback_array » PHP Manual PCRE 関数 正規表現検索を行い、コールバック関数を使用して置換を行う 検索 preg_replace_callback (PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8) preg_replace_callback — 正規表現検索を行い、コールバ
... した 例3 カプセル化された BB code を処理するための、 preg_replace_callback() での再帰構造の使用 <?php $input = "通常の位置 [indent] 字下げ [indent] もっと字下げ [/indent] 字下げ [/indent] 通常の位置" ; function parseTagsRecursive ( $input ) { $regex = ' ... #\[indent]((?:[^[]|\[(?!/?indent])|(?R))+)\[/indent]#' ; if ( is_array ( $input )) { $input = '<div style="margin-left: 10px">' . $i ... 理のエラーコードを返す 無名関数 関連キーワード: preg callback replace コール バック 置換 matches 正規 表現 array 場合 input indent subject 配列 function パターン 日付 string flags ...
-
https://man.mtool.work/php/8.3/function.preg-replace-callback.html
- 現在の Tidy の設定を取得する 10444
- « tidy::$errorBuffer tidy::getHtmlVer » PHP Manual tidy 現在の Tidy の設定を取得する 検索 tidy::getConfig tidy_get_config (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0) tidy::getConfig -- tidy_get_config — 現在の Tidy の設定を取得する 説明 オブジ
... l-tidy.org/#quick-reference を参照ください。 例 例1 tidy::getConfig() の例 <?php $html = '<p>test</p>' ; $config = array( 'indent' => TRUE , 'output-xhtml' => TRUE , 'wrap' => 200 ); $tidy = tidy_parse_string ( $html , $config ); print_r ( $tidy -> get ... Config ()); ?> 上の例の出力は以下となります。 Array ( [indent-spaces] => 2 [wrap] => 200 [tab-size] => 8 [char-encoding] => 1 [input-encoding] => 3 [output-encoding] => 1 [newline] => ... -text] => [slide-style] => [error-file] => [output-file] => [write-back] => [markup] => 1 [show-warnings] => 1 [quiet] => [indent] => 1 [hide-endtags] => [input-xml] => [output-xml] => 1 [output-xhtml] => 1 [output-html] => [add-xml-decl] => [uppercase ...
-
https://man.mtool.work/php/8.3/tidy.getconfig.html
- 正規表現検索を行い、コールバック関数を使用して置換を行う 10444
- « preg_replace preg_replace_callback_array » PHP Manual PCRE 関数 正規表現検索を行い、コールバック関数を使用して置換を行う 検索 preg_replace_callback (PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8) preg_replace_callback — 正規表現検索を行い、コールバ
... した 例3 カプセル化された BB code を処理するための、 preg_replace_callback() での再帰構造の使用 <?php $input = "通常の位置 [indent] 字下げ [indent] もっと字下げ [/indent] 字下げ [/indent] 通常の位置" ; function parseTagsRecursive ( $input ) { $regex = ' ... #\[indent]((?:[^[]|\[(?!/?indent])|(?R))+)\[/indent]#' ; if ( is_array ( $input )) { $input = '<div style="margin-left: 10px">' . $i ... の PCRE 正規表現処理のエラーコードを返す 無名関数 関連キーワード: preg callback replace バック 置換 matches 正規 表現 input indent subject パターン 日付 flags マッチ 無名 line return text 通常 字下げ parseTagsRecursive pattern limit count ...
-
https://man.mtool.work/php/8.3/function.preg-replace-callback.html
- 現在の Tidy の設定を取得する 10444
- « tidy::$errorBuffer tidy::getHtmlVer » PHP Manual tidy 現在の Tidy の設定を取得する 検索 tidy::getConfig tidy_get_config (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0) tidy::getConfig -- tidy_get_config — 現在の Tidy の設定を取得する 説明 オブジ
... l-tidy.org/#quick-reference を参照ください。 例 例1 tidy::getConfig() の例 <?php $html = '<p>test</p>' ; $config = array( 'indent' => TRUE , 'output-xhtml' => TRUE , 'wrap' => 200 ); $tidy = tidy_parse_string ( $html , $config ); print_r ( $tidy -> get ... Config ()); ?> 上の例の出力は以下となります。 Array ( [indent-spaces] => 2 [wrap] => 200 [tab-size] => 8 [char-encoding] => 1 [input-encoding] => 3 [output-encoding] => 1 [newline] => ... -text] => [slide-style] => [error-file] => [output-file] => [write-back] => [markup] => 1 [show-warnings] => 1 [quiet] => [indent] => 1 [hide-endtags] => [input-xml] => [output-xml] => 1 [output-xhtml] => 1 [output-html] => [add-xml-decl] => [uppercase ...
-
https://man.mtool.work/php/8.3/tidy.getconfig.html
- Tidy パースツリーのルートを表す tidyNode を返す 10032
- « tidy::repairString tidyNode » PHP Manual tidy Tidy パースツリーのルートを表す tidyNode を返す 検索 tidy::root tidy_get_root (PHP 5, PHP 7, PHP 8, PECL tidy 0.5.2-1.0.0) tidy::root -- tidy_get_root — Tidy パースツリーのルートを表す tidyNod
... body></html> HTML; $tidy = tidy_parse_string ( $html ); dump_nodes ( $tidy -> root (), 1 ); function dump_nodes ( $node , $indent ) { if( $node -> hasChildren ()) { foreach( $node -> child as $child ) { echo str_repeat ( '.' , $indent * 2 ) . ( $child ... -> name ? $child -> name : '"' . $child -> value . '"' ). "\n" ; dump_nodes ( $child , $indent + 1 ); } } } ?> 上の例の出力は以下となります。 ..html ....head ......title ....body ......p ........"paragraph" ......br 関 ... 連キーワード: tidy tidyNode root child Tidy html パース ツリー ルート get function body dump nodes node indent オブジェクト paragraph br name ...
-
https://man.mtool.work/php/8.3/tidy.root.html
- Tidy パースツリーのルートを表す tidyNode を返す 10032
- « tidy::repairString tidyNode » PHP Manual tidy Tidy パースツリーのルートを表す tidyNode を返す 検索 tidy::root tidy_get_root (PHP 5, PHP 7, PHP 8, PECL tidy 0.5.2-1.0.0) tidy::root -- tidy_get_root — Tidy パースツリーのルートを表す tidyNod
... body></html> HTML; $tidy = tidy_parse_string ( $html ); dump_nodes ( $tidy -> root (), 1 ); function dump_nodes ( $node , $indent ) { if( $node -> hasChildren ()) { foreach( $node -> child as $child ) { echo str_repeat ( '.' , $indent * 2 ) . ( $child ... -> name ? $child -> name : '"' . $child -> value . '"' ). "\n" ; dump_nodes ( $child , $indent + 1 ); } } } ?> 上の例の出力は以下となります。 ..html ....head ......title ....body ......p ........"paragraph" ......br 関 ... 連キーワード: tidy tidyNode root child Tidy パース ツリー ルート body dump nodes node indent paragraph repairString オブジェクト指向 手続き parse hasChildren foreach repeat head title ...
-
https://man.mtool.work/php/8.3/tidy.root.html
- 字下げに使用する文字列を設定する 9826
- « XMLWriter::setIndent XMLWriter::startAttribute » PHP Manual XMLWriter 字下げに使用する文字列を設定する 検索 XMLWriter::setIndentString xmlwriter_set_indent_string (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::setIndent
... tString -- xmlwriter_set_indent_string — 字下げに使用する文字列を設定する 説明 オブジェクト指向型 public function XMLWriter::setIndentString ( string $ind ... entation ): bool 手続き型 function xmlwriter_set_indent_string ( XMLWriter $writer , string $indentation ): bool 文字列を設定します。この文字を使用して、結果の xml の要素/属性 を ... スタンスです。 このインスタンスは、 xmlwriter_open_uri() あるいは xmlwriter_open_memory() を呼び出すことで取得したものです。 indentation 字下げ用の文字列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.0.0 引 ...
-
https://man.mtool.work/php/8.3/xmlwriter.setindentstring.html
- 字下げに使用する文字列を設定する 9715
- « XMLWriter::setIndent XMLWriter::startAttribute » PHP Manual XMLWriter 字下げに使用する文字列を設定する 検索 XMLWriter::setIndentString xmlwriter_set_indent_string (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::setIndent
... tString -- xmlwriter_set_indent_string — 字下げに使用する文字列を設定する 説明 オブジェクト指向型 public function XMLWriter::setIndentString ( string $ind ... entation ): bool 手続き型 function xmlwriter_set_indent_string ( XMLWriter $writer , string $indentation ): bool 文字列を設定します。この文字を使用して、結果の xml の要素/属性 を ... スタンスです。 このインスタンスは、 xmlwriter_open_uri() あるいは xmlwriter_open_memory() を呼び出すことで取得したものです。 indentation 字下げ用の文字列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.0.0 引 ...
-
https://man.mtool.work/php/8.3/xmlwriter.setindentstring.html
- 字下げの on/off を切り替える 9303
- « XMLWriter::outputMemory XMLWriter::setIndentString » PHP Manual XMLWriter 字下げの on/off を切り替える 検索 XMLWriter::setIndent xmlwriter_set_indent (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::setIndent -- xmlwrite
... r_set_indent — 字下げの on/off を切り替える 説明 オブジェクト指向型 public function XMLWriter::setIndent ( bool $enable ): bool 手続き型 ... function xmlwriter_set_indent ( XMLWriter $writer , bool $enable ): bool 字下げの on/off を切り替えます。 パラメータ writer 手続き型のコールでのみ使用し ... のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 例 例1 XMLWriter::setIndent() と mixed content mixed content では字下げを有効にしてもうまく動きません。 字下げされた文字列は、インライン要素の前に挿入 ...
-
https://man.mtool.work/php/8.3/xmlwriter.setindent.html
- 字下げの on/off を切り替える 9303
- « XMLWriter::outputMemory XMLWriter::setIndentString » PHP Manual XMLWriter 字下げの on/off を切り替える 検索 XMLWriter::setIndent xmlwriter_set_indent (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::setIndent -- xmlwrite
... r_set_indent — 字下げの on/off を切り替える 説明 オブジェクト指向型 public function XMLWriter::setIndent ( bool $enable ): bool 手続き型 ... function xmlwriter_set_indent ( XMLWriter $writer , bool $enable ): bool 字下げの on/off を切り替えます。 パラメータ writer 手続き型のコールでのみ使用し ... のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 例 例1 XMLWriter::setIndent() と mixed content mixed content では字下げを有効にしてもうまく動きません。 字下げされた文字列は、インライン要素の前に挿入 ...
-
https://man.mtool.work/php/8.3/xmlwriter.setindent.html