« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 26 for lines (0.002 sec.)
file — ファイル全体を読み込んで配列に格納する | PHP 8.3 12993
file (PHP 4, PHP 5, PHP 7, PHP 8) file — ファイル全体を読み込んで配列に格納する 説明 function file ( string $filename , int $flags = 0 , ? resource $context = null ): array | false ファイル全体を配列に読み込みます。 注意 : ファイルの内容を文 ... うちのひとつ、あるいは複数の組み合わせとなります。 FILE_USE_INCLUDE_PATH include_path のファイルを探します。 FILE_IGNORE_NEW_LINES 配列の各要素の最後の改行を省略します。 FILE_SKIP_EMPTY_LINES 空行を読み飛ばします。 FILE_NO_DEFAULT_CONTEXT デフォルトのス ... ファイルの各行に対応します。改行記号はついたままとなります。 失敗すると file() は false を返します。 注意 : FILE_IGNORE_NEW_LINES を指定しない限り、 配列に取り込まれた各行は行末文字も含みます。 注意 : PHP 8.1.0 より前のバージョンでは、実行時の設定オプシ ... 例 例1 file() の例 <?php // ファイルの内容を配列に取り込みます。 // この例ではHTTPを通してURL上のHTMLソースを取得します。 $lines = file ( 'http://www.example.com/' ); // 配列をループしてHTMLをHTMLソースとして表示し、行番号もつけます。 foreach ( $lines ...
https://man.mtool.work/php/8.3/function.file.html
MultilineEntry Control | PHP 8.3 11274
MultilineEntry Control (UI 0.9.9) はじめに A Multiline Entry is a text entry control able to hold multiple lines of text, with or without wrapping. クラス概要 class UI\Controls\MultilineEntry extends UI\Control { /* 定数 */ const int Wrap ; ... setParent ( UI\Control $parent ) public function UI\Control::show () } 定義済み定数 UI\Controls\MultilineEntry::Wrap Allow lines to wrap UI\Controls\MultilineEntry::NoWrap Do not allow lines to wrap 目次 UI\Controls\MultilineEntry::append — Append Tex ...
https://man.mtool.work/php/8.3/class.ui-controls-multilineentry.html
基本的な SimpleXML の使用法 | PHP 8.3 10745
基本的な SimpleXML の使用法 このリファレンスの多くの例では XML 文字列が必要です。それぞれの例で この文字列をくり返す代わりに、あるファイルにこの文字列を保存して、 例ごとに読みこむことにします。この読みこまれるファイルは、以下の例 に関するセ ... g language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</ratin ... <?php include 'examples/simplexml-data.php' ; $movies = new SimpleXMLElement ( $xmlstr ); echo $movies -> movie ->{ 'great-lines' }-> line ; ?> 上の例の出力は以下となります。 PHP solves all my web problems 例4 SimpleXML でユニークでない要素にアクセスす ... g language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</ratin ...
https://man.mtool.work/php/8.3/simplexml.examples-basic.html
例 | PHP 8.3 10232
例 例1 Yaml の例 <?php $addr = array( "given" => "Chris" , "family" => "Dumars" , "address" => array( "lines" => "458 Walkman Dr. Suite #292" , "city" => "Royal Oak" , "state" => "MI" , "postal" => 48046 , ), ); $invoice = array ( "invoice" ... えば以下のようになります。 string(631) "--- invoice: 34843 date: "2001-01-23" bill-to: given: Chris family: Dumars address: lines: |- 458 Walkman Dr. Suite #292 city: Royal Oak state: MI postal: 48046 ship-to: given: Chris family: Dumars address: lines ...
https://man.mtool.work/php/8.3/yaml.examples.html
ReflectionFunction::__construct — ReflectionFunction オブジェクトを作成する | P... 10067
ReflectionFunction::__construct (PHP 5, PHP 7, PHP 8) ReflectionFunction::__construct — ReflectionFunction オブジェクトを作成する 説明 public function ReflectionFunction::__construct ( Closure | string $function ) ReflectionFunction オブジェ ... eflectionFunction ( $func ) { // 基本情報を表示します printf ( "\n\n===> The %s function '%s'\n" . " declared in %s\n" . " lines %d to %d\n" , $func -> isInternal () ? 'internal' : 'user-defined' , $func -> getName (), $func -> getFileName (), $func - ... 上の例の出力は、 たとえば以下のようになります。 ===> The user-defined function 'counter1' declared in Z:\reflectcounter.php lines 7 to 11 ---> Documentation: '/** * 簡単なカウンタ * * @return int */' ---> Static variables: array ( 'c' => 0, ) ===> The ... user-defined function '{closure}' declared in Z:\reflectcounter.php lines 18 to 23 ---> Documentation: '/** * 別の簡単なカウンタ * * @return int */' ---> Static variables: array ( 'd' => 0, ) 参考 ...
https://man.mtool.work/php/8.3/reflectionfunction.construct.html
yaml_emit — YAML 形式にした値を返す | PHP 8.3 9538
yaml_emit (PECL yaml >= 0.5.0) yaml_emit — YAML 形式にした値を返す 説明 function yaml_emit ( mixed $data , int $encoding = YAML_ANY_ENCODING , int $linebreak = YAML_ANY_BREAK , array $callbacks = null ): string data で渡したデータを YAML 形 ... 加されました。 例 例1 yaml_emit() の例 <?php $addr = array( "given" => "Chris" , "family" => "Dumars" , "address" => array( "lines" => "458 Walkman Dr. Suite #292" , "city" => "Royal Oak" , "state" => "MI" , "postal" => 48046 , ), ); $invoice = array ( ... たとえば以下のようになります。 string(628) "--- invoice: 34843 date: 980208000 bill-to: given: Chris family: Dumars address: lines: |- 458 Walkman Dr. Suite #292 city: Royal Oak state: MI postal: 48046 ship-to: given: Chris family: Dumars address: lines ...
https://man.mtool.work/php/8.3/function.yaml-emit.html
gzfile — gzファイル全体を配列に読み込む | PHP 8.3 9373
gzfile (PHP 4, PHP 5, PHP 7, PHP 8) gzfile — gzファイル全体を配列に読み込む 説明 function gzfile ( string $filename , bool $use_include_path = false ): array | false ファイルを配列にして返すこと以外は readgzfile() と同じです。 パラメータ fi ... バージョン 説明 8.5.0 use_include_path の型が bool になりました。 これより前は、 int でした。 例 例1 gzfile() の例 <?php $lines = gzfile ( 'somefile.gz' ); foreach ( $lines as $line ) { echo $line ; } ?> 参考 readgzfile() - gz ファイルを出力する gzop ...
https://man.mtool.work/php/8.3/function.gzfile.html
yaml_parse — YAML ストリームをパースする | PHP 8.3 9026
yaml_parse (PECL yaml >= 0.4.0) yaml_parse — YAML ストリームをパースする 説明 function yaml_parse ( string $input , int $pos = 0 , int &$ndocs = ? , array $callbacks = null ): mixed YAML ドキュメントストリーム全体あるいはその一部を、PHP の変 ... rse() の例 <?php $yaml = <<<EOD --- invoice: 34843 date: "2001-01-23" bill-to: &id001 given: Chris family: Dumars address: lines: |- 458 Walkman Dr. Suite #292 city: Royal Oak state: MI postal: 48046 ship-to: *id001 product: - sku: BL394D quantity: 4 ... -01-23" ["bill-to"]=> &array(3) { ["given"]=> string(5) "Chris" ["family"]=> string(6) "Dumars" ["address"]=> array(4) { ["lines"]=> string(34) "458 Walkman Dr. Suite #292" ["city"]=> string(9) "Royal Oak" ["state"]=> string(2) "MI" ["postal"]=> int(4 ... 46) } } ["ship-to"]=> &array(3) { ["given"]=> string(5) "Chris" ["family"]=> string(6) "Dumars" ["address"]=> array(4) { ["lines"]=> string(34) "458 Walkman Dr. Suite #292" ["city"]=> string(9) "Royal Oak" ["state"]=> string(2) "MI" ["postal"]=> int(4 ...
https://man.mtool.work/php/8.3/function.yaml-parse.html
SimpleXMLElement::addAttribute — SimpleXML 要素に属性を追加する | PHP 8.3 8166
SimpleXMLElement::addAttribute (PHP 5 >= 5.1.3, PHP 7, PHP 8) SimpleXMLElement::addAttribute — SimpleXML 要素に属性を追加する 説明 public function SimpleXMLElement::addAttribute ( string $qualifiedName , string $value , ? string $namespace ... g language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</ratin ...
https://man.mtool.work/php/8.3/simplexmlelement.addattribute.html
ReflectionMethod::__construct — ReflectionMethod を作成する | PHP 8.3 7984
ReflectionMethod::__construct (PHP 5, PHP 7, PHP 8) ReflectionMethod::__construct — ReflectionMethod を作成する 説明 public function ReflectionMethod::__construct ( object | string $objectOrMethod , string $method ) 代替のシグネチャ (名前付 ... ement' ); // 基本情報を表示します printf ( "===> The %s%s%s%s%s%s%s method '%s' (which is %s)\n" . " declared in %s\n" . " lines %d to %d\n" . " having the modifiers %d[%s]\n" , $method -> isInternal () ? 'internal' : 'user-defined' , $method -> isAbs ... r-defined final public static method 'increment' (which is a regular method) declared in /Users/philip/cvs/phpdoc/test.php lines 14 to 17 having the modifiers 261[final public static] ---> Documentation: '/** * カウンタをインクリメントする * * @final ...
https://man.mtool.work/php/8.3/reflectionmethod.construct.html
PREV 1 2 3 NEXT