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-- Check for vtiful presence --SKIPIF-- <?php if (!extension_loaded("xlswriter")) pr..
Decoded Output download
--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName("18.xlsx");
$fileObject->header(['name', 'age'])
->data([['viest', 21]])
->data([['wjx', 21]]);
$filePath = $fileObject->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/18.xlsx');
?>
--EXPECT--
string(15) "./tests/18.xlsx"
Did this file decode correctly?
Original Code
--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName("18.xlsx");
$fileObject->header(['name', 'age'])
->data([['viest', 21]])
->data([['wjx', 21]]);
$filePath = $fileObject->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/18.xlsx');
?>
--EXPECT--
string(15) "./tests/18.xlsx"
Function Calls
None |
Stats
MD5 | 2ca1f5933b5f37c0687838349610ed06 |
Eval Count | 0 |
Decode Time | 90 ms |