Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')



  • Code:

    $link = strtr($link, array('http://' => '', ':' => '', '}' => '', '"' => '', '{' => '', "(" => "", ")" => "", '&' => '', '$' => '', '!' => '', '#' => '', '№' => '', ';' => '', '%' => '', '^' => '', '?' => '', '*' => '', '=' => '', '+' => '[' => '', ']' => '', '/' => '', '>' => '', '<' => '', ',' => '', '|' => '', "'" => ""));
    

    Mistake:

    PHP Parse error:  syntax error, unexpected T_DOUBLE_ARROW, expecting ')'
    

    Question:

    How do I fix it?



  •  '+' => '[' => '',
    

    Attention to this piece, because the mistake is clearly written.

    T_DOUBLE_ARROW
    

    such stupid mistakes, it seems that the newcomers write scruples in the usual notebook.

    Squeeze yourself a program so that even the code can light up, and the eyes of the mistakes, some people can see clearly.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2