Remove plus sign for sms_command

Hi there, i have a script i create for sms command it looks like

./command.sh {SMSSENDER} {COMMANDPARAM}
My problem is, I’m assuming, playsms sends the smssender with the plus sign, which messes my script because I am calling a php script via curl.

So instead of
"254702123456 message"

it loooks like this

“%2B254702123456 message”

Seeing that a plus sign is converted to “%2B” in a web browser.
Is there a way to have that plus sign removed when using {SMSSENDER} ?

Hi. You can try to use this php functions in script – urlencode and urldecode.

Thanks, it worked. Sorry for delay in reply