Home > Q&A > body text
<!DOCTYPE html><html><body><?php$str = "Hello World!";echo $str . " <br>". "<br>";echo trim($str,"Herld!");?></body></html>
The output result is:
Hello World!o Wo
Shouldn’t the second line be: llo Wo?
小崔2017-11-23 17:34:46
Because ll was cleared by the trim function
Thank you!