5.2X中正常5.3.3出错一个数组的问题??
$htmlfiletag=array('<{foreach'=>'<?php foreach','<{if'=>'<?php if','<{for'=>'<?php for',':}>'=>': ?>','<{/if}>'=>'<?php endif; ?>','<{/else}>'=>'<?php else: ?>','<{/foreach}>'=>'<?php endforeach; ?>','<{/for}>'=>'<?php endfor; ?>','<${'=>'<?php echo ','}$>'=>'; ?>','</{'=>'<?php include($this->webRoot.\'','}/>'=>'\'); ?>','<{'=>'<?php ','}>'=>' ?>');
PHP错误信息:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '(' in
上面的数组在5.2X中没事 刚升级了5.3.3的就出错了???
------解决方案--------------------没有发现错误.版本5.4x
------解决方案--------------------PHP code
Array
(
[<{foreach] => <?php foreach
[<{if] => <?php if
[<{for] => <?php for
[:}>] => : ?>
[<{/if}>] => <?php endif; ?>
[<{/else}>] => <?php else: ?>
[<{/foreach}>] => <?php endforeach; ?>
[<{/for}>] => <?php endfor; ?>
[<${] => <?php echo
[}$>] => ; ?>
[</{] => <?php include($this->webRoot.'
[}/>] => '); ?>
[<{] => <?php
[}>] => ?>
)
------解决方案--------------------
你这次才贴全了呀!
贴出46到56行的代码,并指出56行在哪里