How can I convert php array to c# string(xml or json)?.
Code
[ID] => 1Code
[CreditNo] => 2Code
[Date] => 2017-06-15[ID] => 1[CreditNo] => 2[Date] => 2017-06-15Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nilesh JadavRank #109 · 20.3K reputationPosted Apr 14, 2017, 8:10 AM EDT
You can take help of Dictionary Let's say your PHP array :$array['key_name'] = "value1"; ?>In C# you can do like this :