Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- SPL: Spl File Info test getExtension with leading dot --FILE-- <?php $file = __DI..

Decoded Output download

--TEST--
SPL: Spl File Info test getExtension with leading dot
--FILE--
<?php
$file = __DIR__ . '/.test';
touch($file);
$fileInfo = new SplFileInfo($file);

var_dump($fileInfo->getExtension());
unlink($file);
?>
--EXPECT--
string(4) "test"

Did this file decode correctly?

Original Code

--TEST--
SPL: Spl File Info test getExtension with leading dot
--FILE--
<?php
$file = __DIR__ . '/.test';
touch($file);
$fileInfo = new SplFileInfo($file);

var_dump($fileInfo->getExtension());
unlink($file);
?>
--EXPECT--
string(4) "test"

Function Calls

None

Variables

None

Stats

MD5 ce84ef4a9a16bc2f45487976993f35e4
Eval Count 0
Decode Time 87 ms