An array error occurred in 5.3.3 in 5.2X. why?

Source: Internet
Author: User
Tags parse error php error php foreach
An array error occurred in 5.3.3 in 5.2X. why ?? $ Htmlfiletagarray (& lt; {foreach & gt; & lt ;? Phpforeach, & lt; {if & gt; & lt ;? Phpif, & lt; {for & gt; & lt ;? Phpfor, :}& gt; & gt ;:? & Gt;, & lt; {if} & gt; & 5.2X, an array error occurs in normal 5.3.3. why ??
$ Htmlfiletag = array ('<{foreach' =>' ' ' '=>':?> ',' <{/If}> '=>' ',' <{/Else}> '=>' ',' <{/Foreach}> '=>' ',' <{/For}> '=>' ',' <$ {'=>' '=>';?> ',' ' WebRoot. \ '', '}/>' => '\');?> ',' <{'=>' '=>'?> ');


PHP error message:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '('In




The above array has nothing to do in 5.2X. the error occurred just after upgrading 5.3.3 ???

------ Solution --------------------
No error found. version 5.4x
------ Solution --------------------
PHP code
Array ([<{foreach] =>
   
   
  ] = >:?> [<{/If}>] =>
  [<{/Else}>] =>
  [<{/Foreach}>] =>
  [<{/For}>] =>
  [<$ {] =>
  ] = >;?> [
   
  WebRoot. '[}/>] =>');?> [<{] =>
  ] = >?>)
------ Solution --------------------
You posted all this time!
Paste 46 to 56 lines of code and point out where the 56 lines are

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.