![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: SplFileObject::isFile/isDir/isLink 3: --CREDITS-- 4: H�vard Eide <nucleuz at gmail.com> 5: #Testfest php.no 6: --FILE-- 7: <?php 8: $s = new SplFileObject(__FILE__); 9: var_dump($s->isFile()); 10: var_dump($s->isDir()); 11: var_dump($s->isLink()); 12: ?> 13: --EXPECT-- 14: bool(true) 15: bool(false) 16: bool(false)