How does rtrim
work? I have a string "4dbb3dca&". I am not sure how my string is formmated.
I want to call rtrim('4dbb3dca&', '&')
--edit:&
might be $amp;
special character issue
But after my string is 4dbb3dc
.
I expect it to be 4dbb3dca
.
Is there any workaround? I ried to use &
, but then rtrim does nothing and initial string is returned. Is it possible to use rtrim
in my situation? Does it depend on php version?
--- edit ---
after some research I realized that I want:
I want remove &
using &
in rtrim()
function. Is this possible?