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-- Triple Mustache - Standalone --DESCRIPTION-- Standalone interpolation should not ..
Decoded Output download
--TEST--
Triple Mustache - Standalone
--DESCRIPTION--
Standalone interpolation should not alter surrounding whitespace.
--SKIPIF--
<?php if(!extension_loaded('mustache')) die('skip '); ?>
--FILE--
<?php
$test = array (
'name' => 'Triple Mustache - Standalone',
'desc' => 'Standalone interpolation should not alter surrounding whitespace.',
'data' =>
array (
'string' => '---',
),
'template' => ' {{{string}}}
',
'expected' => ' ---
',
);
$mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
\s*\-\-\-\s*
Did this file decode correctly?
Original Code
--TEST--
Triple Mustache - Standalone
--DESCRIPTION--
Standalone interpolation should not alter surrounding whitespace.
--SKIPIF--
<?php if(!extension_loaded('mustache')) die('skip '); ?>
--FILE--
<?php
$test = array (
'name' => 'Triple Mustache - Standalone',
'desc' => 'Standalone interpolation should not alter surrounding whitespace.',
'data' =>
array (
'string' => '---',
),
'template' => ' {{{string}}}
',
'expected' => ' ---
',
);
$mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
\s*\-\-\-\s*
Function Calls
extension_loaded | 1 |
Stats
MD5 | 5efcff769ed60c6e527885a75a063c8a |
Eval Count | 0 |
Decode Time | 109 ms |