This commit is contained in:
thinkphp
2017-07-25 17:49:17 +08:00
parent da03ea07e9
commit 1b9cef6232
2 changed files with 8 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ EOF;
{\$name.a==\$name.b?='test'}
EOF;
$data = <<<EOF
<?php if(!empty(\$name['a']) && \$name['a']==\$name['b']) echo 'test'; ?>
<?php if(\$name['a']==\$name['b']) echo 'test'; ?>
EOF;
$template->parse($content);
@@ -88,7 +88,7 @@ EOF;
{\$name.a==\$name.b?'a':'b'}
EOF;
$data = <<<EOF
<?php echo !empty(\$name['a']) && \$name['a']==\$name['b']?'a':'b'; ?>
<?php echo \$name['a']==\$name['b']?'a':'b'; ?>
EOF;
$template->parse($content);