検索

phrase: max: clip:
target: order:
Results of 421 - 430 of about 2375 for New (0.235 sec.)
ファイルのベース名を取得する 2424
« SplFileInfo::getATime SplFileInfo::getCTime » PHP Manual SplFileInfo ファイルのベース名を取得す ... 例1 SplFileInfo::getBasename() の例 <?php $info = new SplFileInfo ( 'file.txt' ); var_dump ( $info -> ge ... tBasename ()); $info = new SplFileInfo ( '/path/to/file.txt' ); var_dump ( $i ... nfo -> getBasename ()); $info = new SplFileInfo ( '/path/to/file.txt' ); var_dump ( $i ...
https://man.plustar.jp/php/splfileinfo.getbasename.html - [similar]
オブジェクトがストレージ内に存在するかどうかを調べる 2424
« SplObjectStorage::next SplObjectStorage::offsetGet » PHP Manual SplObjectStorage オブジェクトが ... 1 SplObjectStorage::offsetExists() の例 <?php $s = new SplObjectStorage ; $o1 = new StdClass ; $o2 = new ...
https://man.plustar.jp/php/splobjectstorage.offsetexists.html - [similar]
オブジェクトに関連づけられたデータを返す 2424
« SplObjectStorage::offsetExists SplObjectStorage::offsetSet » PHP Manual SplObjectStorage オブジ ... 例1 SplObjectStorage::offsetGet() の例 <?php $s = new SplObjectStorage ; $o1 = new StdClass ; $o2 = new ...
https://man.plustar.jp/php/splobjectstorage.offsetget.html - [similar]
Create a node synchronously 2424
« Zookeeper::__construct Zookeeper::delete » PHP Manual Zookeeper Create a node synchronously Zo ... of the Create Flags 戻り値 Returns the path of the new node (this might be different than the supplied pa ... tives. 例 例1 Zookeeper::create() example Create a new node. <?php $zookeeper = new Zookeeper ( 'locahost ... world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode' ; $realPath = $zookeeper -> create ( $path , ... 'ERR' ; ?> 上の例の出力は以下となります。 /path/to/newnode 参考 Zookeeper::delete() - Delete a node in zo ...
https://man.plustar.jp/php/zookeeper.create.html - [similar]
間隔をフォーマットする 2402
« DateInterval::createFromDateString DatePeriod » PHP Manual DateInterval 間隔をフォーマットする ... ました。 例 例1 DateInterval の例 <?php $interval = new DateInterval ( 'P2Y4DT6H8M' ); echo $interval -> f ... 例2 DateInterval での繰り越しの例 <?php $interval = new DateInterval ( 'P32D' ); echo $interval -> format ... e::diff() での修飾子 %a および %d <?php $january = new DateTime ( '2010-01-01' ); $february = new DateTim ...
https://man.plustar.jp/php/dateinterval.format.html - [similar]
クラスが定義済みかどうかを確認する 2402
« class_alias enum_exists » PHP Manual クラス/オブジェクト関数 クラスが定義済みかどうかを確認する ... べます if ( class_exists ( 'MyClass' )) { $myclass = new MyClass (); } ?> 例2 autoload パラメータの例 <?php ... f (! class_exists ( $class_name , false )) { throw new LogicException ( "Unable to load class: $class_nam ... if ( class_exists ( MyClass ::class)) { $myclass = new MyClass (); } ?> 参考 function_exists() - 指定した ...
https://man.plustar.jp/php/function.class-exists.html - [similar]
変数を古い値と比較して新しい値を代入する 2402
« wincache_ucache_add wincache_ucache_clear » PHP Manual WinCache 関数 変数を古い値と比較して新し ... e_ucache_cas ( string $key , int $old_value , int $new_value ): bool 指定したキーの変数を old_value と比較 ... し、 マッチした場合はそこに new_value を代入します。 パラメータ key 変数をキャッシ ... らず、 それ以外の場合はこの関数は false を返します。 new_value マッチしたときに key が指す変数に代入する新し ...
https://man.plustar.jp/php/function.wincache-ucache-cas.html - [similar]
画像のクリップマスクを設定する 2402
« Imagick::setImageChannelDepth Imagick::setImageColormapColor » PHP Manual Imagick 画像のクリッ ... ction setImageClipMask ( $imagePath ) { $imagick = new \ Imagick (); $imagick -> readImage ( realpath ( $ ... eight = $imagick -> getImageHeight (); $clipMask = new \ Imagick (); $clipMask -> newPseudoImage ( $width ... , $height , "canvas:transparent" ); $draw = new \ ImagickDraw (); $draw -> setFillColor ( 'white' ...
https://man.plustar.jp/php/imagick.setimageclipmask.html - [similar]
マジックメソッド 2402
« オブジェクトの反復処理 finalキーワード » PHP Manual クラスとオブジェクト マジックメソッド マジ ... ); } private function connect () { $this -> link = new PDO ( $this -> dsn , $this -> username , $this -> ... ); } private function connect () { $this -> link = new PDO ( $this -> dsn , $this -> username , $this -> ... __toString () { return $this -> foo ; } } $class = new TestClass ( 'Hello' ); echo $class ; ?> 上の例の出 ... tion __invoke ( $x ) { var_dump ( $x ); } } $obj = new CallableClass ; $obj ( 5 ); var_dump ( is_callable ...
https://man.plustar.jp/php/language.oop5.magic.html - [similar]
型宣言 2402
« コールバック / Callable 型の相互変換 » PHP Manual 型 型宣言 型宣言 関数のパラメータや戻り値、 ... on f ( C $c ) { echo get_class ( $c ). "\n" ; } f (new C ); f (new D ); f (new E ); ?> 上の例の PHP 8 での ... on f ( I $i ) { echo get_class ( $i ). "\n" ; } f (new C ); f (new E ); ?> 上の例の PHP 8 での出力は、この ... を返す <?php class C {} function getC (): C { return new C ; } var_dump ( getC ()); ?> 上の例の出力は以下と ... C {} function f (? C $c ) { var_dump ( $c ); } f (new C ); f ( null ); ?> 上の例の出力は以下となります。 ...
https://man.plustar.jp/php/language.types.declarations.html - [similar]