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("gridlines.xlsx");
$fileObject->header(['name', 'age'])
->gridline(\Vtiful\Kernel\Excel::GRIDLINES_HIDE_ALL)
->data([
['viest', 21],
['viest', 22],
['viest', 23],
]);
$filePath = $fileObject->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/gridlines.xlsx');
?>
--EXPECT--
string(22) "./tests/gridlines.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("gridlines.xlsx");
$fileObject->header(['name', 'age'])
->gridline(\Vtiful\Kernel\Excel::GRIDLINES_HIDE_ALL)
->data([
['viest', 21],
['viest', 22],
['viest', 23],
]);
$filePath = $fileObject->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/gridlines.xlsx');
?>
--EXPECT--
string(22) "./tests/gridlines.xlsx"
Function Calls
None |
Stats
MD5 | 119207cee31b94cc4ffc4a3235bac6b1 |
Eval Count | 0 |
Decode Time | 73 ms |