検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 247 for bar (0.003 sec.)
オブジェクト定数 6664
« プロパティ クラスのオートローディング » PHP Manual クラスとオブジェクト オブジェクト定数 オブジ ... 名前空間の ::class の例 <?php namespace foo { class bar { } echo bar ::class; // foo\bar } ?> 例3 クラス内 ... ス定数のアクセス範囲 <?php class Foo { public const BAR = 'bar' ; private const BAZ = 'baz' ; } echo Foo : ... : BAR , PHP_EOL ; echo Foo :: BAZ , PHP_EOL ; ?> 上の例の ... PHP 7.1 での出力は、このようになります。 bar Fatal error: Uncaught Error: Cannot access private ...
https://man.plustar.jp/php/language.oop5.constants.html - [similar]
新規の変数をデータ領域にキャッシュする 6563
« APCu 関数 apcu_cache_info » PHP Manual APCu 関数 新規の変数をデータ領域にキャッシュする apcu_a ... を含む配列を返します。 例 例1 apcu_add() の例 <?php $bar = 'BAR' ; apcu_add ( 'foo' , $bar ); var_dump ( ap ... cu_fetch ( 'foo' )); echo "\n" ; $bar = 'NEVER GETS SET' ; apcu_add ( 'foo' , $bar ); va ... \n" ; ?> 上の例の出力は以下となります。 string(3) "BAR" string(3) "BAR" 参考 apcu_store() - 変数をデータ領 ...
https://man.plustar.jp/php/function.apcu-add.html - [similar]
FAQ: 名前空間について知っておくべきこと 6523
« 名前解決のルール 列挙型(Enum) » PHP Manual 名前空間 FAQ: 名前空間について知っておくべきこと FA ... oo\my\name" クラスのインスタンスを作成します foo \ bar :: name (); // "blah\blah\bar" のstaticメソッド "n ... ame" をコールします my \ bar (); // "foo\my\bar" 関数をコールします $a = my \ B ... AR ; // $a に定数 "foo\my\BAR" の値を設定します ?> 修飾されていない name のような ... ラーが発生します。 例10 未定義の定数 <?php namespace bar ; $a = FOO ; // notice - undefined constants "FOO" ...
https://man.plustar.jp/php/language.namespaces.faq.html - [similar]
文字列 6523
« 浮動小数点数 数値形式の文字列 » PHP Manual 型 文字列 文字列 string は、文字が連結されたものです ... のバージョンでの間違った例 <?php class foo { public $bar = <<<EOT bar EOT; } // 識別子はインデントしてはいけ ... 前のバージョンでも有効な例 <?php class foo { public $bar = <<<EOT bar EOT; } ?> 変数を含んでいるヒアドキュメ ... 使用するより複雑な例 */ class foo { var $foo ; var $bar ; function __construct () { $this -> foo = 'Foo' ; ... $this -> bar = array( 'Bar1' , 'Bar2' , 'Bar3' ); } } $foo = ne ...
https://man.plustar.jp/php/language.types.string.html - [similar]
文字列の最初の文字を小文字にする 6473
« join levenshtein » PHP Manual String 関数 文字列の最初の文字を小文字にする lcfirst (PHP 5 >= 5 ... loWorld' ; $foo = lcfirst ( $foo ); // helloWorld $bar = 'HELLO WORLD!' ; $bar = lcfirst ( $bar ); // hEL ... LO WORLD! $bar = lcfirst ( strtoupper ( $bar )); // hELLO WORLD! ...
https://man.plustar.jp/php/function.lcfirst.html - [similar]
文字列の最初の文字を大文字にする 6473
« trim ucwords » PHP Manual String 関数 文字列の最初の文字を大文字にする ucfirst (PHP 4, PHP 5, ... orld!' ; $foo = ucfirst ( $foo ); // Hello world! $bar = 'HELLO WORLD!' ; $bar = ucfirst ( $bar ); // HEL ... LO WORLD! $bar = ucfirst ( strtolower ( $bar )); // Hello world! ...
https://man.plustar.jp/php/function.ucfirst.html - [similar]
ユーザー定義関数 6473
« 関数 関数の引数 » PHP Manual 関数 ユーザー定義関数 ユーザー定義関数 関数は次のような構文で定義 ... ていないので コールすることはできません。 しかし関数 bar()はコールできます。 */ bar (); if ( $makefoo ) { f ... ことができます。 */ if ( $makefoo ) foo (); function bar () { echo "I exist immediately upon program start. ... 例3 関数の中の関数 <?php function foo () { function bar () { echo "I don't exist until foo() is called.\n" ... ; } } /* ここでは関数bar()はまだ定義されていないので コールすることはできま ...
https://man.plustar.jp/php/functions.user-defined.html - [similar]
パラメータを変数にバインドする 6473
« SQLite3Stmt SQLite3Stmt::bindValue » PHP Manual SQLite3Stmt パラメータを変数にバインドする SQL ... 3 ( ':memory:' ); $db -> exec ( "CREATE TABLE foo (bar TEXT)" ); $stmt = $db -> prepare ( "INSERT INTO fo ... o VALUES (:bar)" ); $stmt -> bindParam ( ':bar' , $bar , SQLITE3_ ... TEXT ); $bar = 'baz' ; $stmt -> execute (); $bar = 42 ; $stmt - ... ; } ?> 上の例の出力は以下となります。 array(1) { ["bar"]=> string(3) "baz" } array(1) { ["bar"]=> string( ...
https://man.plustar.jp/php/sqlite3stmt.bindparam.html - [similar]
生の XML データを追加する 6422
« DOMDocumentFragment DOMDocumentFragment::__construct » PHP Manual DOMDocumentFragment 生の XML ... entFragment (); $f -> appendXML ( "<foo>text</foo><bar>text2</bar>" ); $doc -> documentElement -> appendC ... ります。 <?xml version="1.0"?> <root><foo>text</foo><bar>text2</bar></root> 関連キーワード: 追加 , データ , ... , appendXML , 標準 , ルート , DOMDocument , 作成 , bar , data ...
https://man.plustar.jp/php/domdocumentfragment.appendxml.html - [similar]
URLを組み立てる 6422
« Yaf_Route_Map Yaf_Route_Map::__construct » PHP Manual Yaf_Route_Map URLを組み立てる Yaf_Route_ ... etRoute ( 'map' )-> assemble ( array( ':c' => 'foo_bar' ), array( 'tkey1' => 'tval1' , 'tkey2' => 'tval2' ... etRoute ( 'map' )-> assemble ( array( ':a' => 'foo_bar' ), array( 'tkey1' => 'tval1' , 'tkey2' => 'tval2' ... は、 たとえば以下のようになります。 string(%d) "/foo/bar?tkey1=tval1&tkey2=tval2" string(%d) "/foo/bar/_/tk ... ード: Yaf , Map , Route , tkey , assemble , string , bar , tval , query , info ...
https://man.plustar.jp/php/yaf-route-map.assemble.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT