Using trim/ltrim/rtrim php functions with 2 parameters may cause unexpected outputs
This article concerns the use of trim/ltrim/rtrim php functions with 2 parametersa and this is because can face unexpected results, different from that you have guessed. But let’s have a look how trim/ltrim/rtrim work with one parameter. With trim($my_string), you can trim all the whitespaces from the beginning and the end of a word. With …