Weird l/r/trim() behaviour [closed]

trim("https://stackoverflow.com/",'/musla-ktora-lieci/');

For Heaven’s sake those parameters are in wrong order

string trim ( string $str [, string $character_mask = ” \t\n\r\0\x0B” ] )

And

What am I doing wrong?

Not reading the manual in case of any unexpected behavior.

echo trim('/musla-ktora-lieci/',"https://stackoverflow.com/");   // musla-ktora-lieci

Browse More Popular Posts

Leave a Comment