0

I need to convert my Dictionary<string,string> into a php array key like the following:

$result['iv'] = iv;
$result['json'] = pJSON;
$result['header'] = header;

I then need to post it to a target server which is using php.

How would I do this?

Matt Hulse
  • 5,146
  • 3
  • 27
  • 37
D.J
  • 2,484
  • 4
  • 27
  • 42

1 Answers1

1

Why not convert it into a more universally recognised format?

I suggest JSON using C# (see C# list of JSON libraries near the bottom of the page) and then in PHP you can use:

$result = json_decode($_POST['result'], true);
Treffynnon
  • 20,865
  • 5
  • 62
  • 96
  • yep i know that is a way better way of doing things, however we have no control on php side so far – D.J Nov 20 '11 at 22:34