This commit is contained in:
thinkphp
2017-07-25 19:27:20 +08:00
parent 3ce0120251
commit 58de4d7cc3
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ EOF;
{\$name.a??'test'}
EOF;
$data = <<<EOF
<?php echo isset(\$name['a']) ? \$name['a'] : 'test'; ?>
<?php echo isset(\$name['a'])?\$name['a']:'test'; ?>
EOF;
$template->parse($content);