Results of 1 - 3 of about 3 for SubPath (0.001 sec.)
- RecursiveDirectoryIterator::getSubPathname — サブパスと名前を取得する | PHP 8.3 10770
- RecursiveDirectoryIterator::getSubPathname (PHP 5 >= 5.1.0, PHP 7, PHP 8) RecursiveDirectoryIterator::getSubPathname — サブパスと名前を取得する 説明 public function RecursiveDirectoryIterator::getSubPathname (): string サブパスとファイル名を
... ます。 パラメータ この関数にはパラメータはありません。 戻り値 サブパス (サブディレクトリ) とファイル名を返します。 例 例1 getSubPathname() の例 $directory = '/tmp'; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)); foreach ( ... $it as $file) { echo 'SubPathName: ' . $it->getSubPathname() . "\n"; echo 'SubPath: ' . $it->getSubPath() . "\n\n"; } 上の例の出力は、 たとえば以下のよう ... になります。 SubPathName: fruit/apple.xml SubPath: fruit SubPathName: stuff.xml SubPath: SubPathName: veggies/carrot.xml SubPath: veggies 参考 ...
-
https://man.mtool.work/php/8.3/recursivedirectoryiterator.getsubpathname.html
- RecursiveDirectoryIterator::getSubPath — サブパスを取得する | PHP 8.3 10454
- RecursiveDirectoryIterator::getSubPath (PHP 5 >= 5.1.0, PHP 7, PHP 8) RecursiveDirectoryIterator::getSubPath — サブパスを取得する 説明 public function RecursiveDirectoryIterator::getSubPath (): string コンストラクタで渡されたディレクトリのサ
... ブパスを返します。 パラメータ この関数にはパラメータはありません。 戻り値 サブパス(サブディレクトリ) を返します。 例 例1 getSubPath() の例 $directory = '/tmp'; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)); foreach ($it ... as $file) { echo 'SubPathName: ' . $it->getSubPathName() . "\n"; echo 'SubPath: ' . $it->getSubPath() . "\n\n"; } 上の例の出力は、 たとえば以下のよう ... になります。 SubPathName: fruit/apple.xml SubPath: fruit SubPathName: stuff.xml SubPath: SubPathName: veggies/carrot.xml SubPath: veggies 参考 ...
-
https://man.mtool.work/php/8.3/recursivedirectoryiterator.getsubpath.html
- RecursiveDirectoryIterator::__construct — RecursiveDirectoryIterator を作成する... 6659
- RecursiveDirectoryIterator::__construct (PHP 5 >= 5.1.2, PHP 7, PHP 8) RecursiveDirectoryIterator::__construct — RecursiveDirectoryIterator を作成する 説明 public function RecursiveDirectoryIterator::__construct ( string $directory , int $f
... new RecursiveDirectoryIterator ( $directory )); $it -> rewind (); while( $it -> valid ()) { if (! $it -> isDot ()) { echo 'SubPathName: ' . $it -> getSubPathName () . "\n" ; echo 'SubPath: ' . $it -> getSubPath () . "\n" ; echo 'Key: ' . $it -> key () . ... "\n\n" ; } $it -> next (); } ?> 上の例の出力は、 たとえば以下のようになります。 SubPathName: fruit/apple.xml SubPath: fruit Key: /tmp/fruit/apple.xml SubPathName: stuff.xml SubPath: Key: /tmp/stuff.xml SubPathN ... ame: veggies/carrot.xml SubPath: veggies Key: /tmp/veggies/carrot.xml 参考 FilesystemIterator::__construct() - 新しい filesystem イテレータを作成する Recu ...
-
https://man.mtool.work/php/8.3/recursivedirectoryiterator.construct.html
PREV
1
NEXT