<!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?
Because ll was cleared by the trim function
Because ll was cleared by the trim function