Issue
I have String like below after doing json_encode
[{"pid":1,"name":"Patient1","mobile":"123456789","birthdate":"07/23/1991","address":"57, New Building,\r\nCollege Road,\r\nPune-3545001","created":"2017-09-25T08:14:10+00:00","modified":"2017-09-25T12:27:20+00:00"}]
so how can i remove \r and \n.
Solution
str_replace('\r\n', '', $string);
Answered By - Alex Stallen
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.