次のJSONデータはID番号があります。最後に:何ができるかように$ johnemail ==「[email protected]」PHPでJSONデータの変数を読み込んで保存する
、ジョンの変数$ johnemailに格納します。
[{"Name":"malek","Email":"[email protected]","Donation":"5","Type":"Cash","id":0},{"Name":"donnie","Email":"[email protected]","Donation":"6","Type":"Cheque","id":1},{"Name":"ramanuj","Email":"[email protected]","Donation":"3","Type":"NEFT","id":2},{"Name":"neha","Email":"[email protected]","Donation":"2","Type":"RTGS","id":3},{"Name":"aasha","Email":"[email protected]","Donation":"1","Type":"CC","id":4},{"Name":"zia","Email":"[email protected]","Donation":"6","Type":"PayU","id":5},{"Name":"John","Email":"[email protected]","Donation":"7","Type":"Instamojo","id":6}]
私は、特に電子メールを取得したいですそれを行う最も簡単な方法は?
'json_decode'? – RomanPerekhrest