search

Home  >  Q&A  >  body text

About rtrim

The '&^' character has been removed from line 9. How can line 11 be divided based on the '&^' character? I can't understand that there are two '&^' characters

潘栋民潘栋民2134 days ago1269

reply all(6)I'll reply

  • 天蓬老师

    天蓬老师2019-04-12 09:33:27

    Please post the code to help you analyze

    reply
    0
  • 潘栋民

    Implement message board function: 1. The write.php file implements writing characters into local text: ```php ``` 2. The index.php file implements the front page for inputting content and displays the content that has been left: ```php ``` `$string = rtrim($string, '&^');` in the index.php file. I don't understand this code. "&^" is the demarcation of a message. The character "&^" has been removed here. Then the next sentence` $arr = explode('&^', $string);` How can we still use the character "&^"?

    潘栋民 · 2019-04-12 09:40:09
    潘栋民

    潘栋民 · 2019-04-12 09:40:44
    潘栋民

    http://www.php.cn/code/1192.html The code of this page. The format of pasting the code directly is too messy. I don’t know how to upload the code better.

    潘栋民 · 2019-04-12 09:41:52
  • Cancelreply