/ / केक 3 में json स्ट्रिंग से r और n कैसे निकालें? - json, cakephp, cakephp-3.0

Cakephp 3 में json string से r और n कैसे निकालें? - json, cakephp, cakephp-3.0

मुझे json_encode करने के बाद नीचे की तरह स्ट्रिंग है

[{"pid":1,"name":"Patient1","mobile":"123456789","birthdate":"07/23/1991","address":"57, New Building,rnCollege Road,rnPune-3545001","created":"2017-09-25T08:14:10+00:00","modified":"2017-09-25T12:27:20+00:00"}]

तो मैं कैसे r और n को हटा सकता हूं।

उत्तर:

जवाब के लिए 0 № 1
str_replace("rn", "", $string);