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,496
  • 4
  • 29
  • 37
D.J
  • 2,534
  • 4
  • 28
  • 43

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
  • 21,365
  • 6
  • 65
  • 98
  • 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