I am facing an issue with replacing () from a string. After using the below code snippet.
$str = "UPI\11770918"; echo str_replace('\', '~', $txn_desc);
After execution, I am getting the below response.
UPIO70918
My desired output was
UPI~11770918
Please help to solve this issue.