0

I want to use the following method on the server and put it in a PHP script. What does it looks like in PHP?

    public string Update(string data)
    {
        return data.Aggregate("", (c, a) => c + (char)(a - 1));
    }
PutraKg
  • 2,226
  • 3
  • 31
  • 60
  • 2
    If you dont want to try yourself, try some tools. SO is not a proper place for code conversions. As an input I would suggest http://stackoverflow.com/questions/441161/how-to-convert-code-from-c-sharp-to-php – Nikhil Vartak Jul 26 '16 at 06:25
  • Some of the links are broken and CS2PHP needs to be installed on my server. For such a short code.. that's kind of overkilled.. – PutraKg Jul 26 '16 at 06:41
  • Does this help? http://www.cs2php.com/how-to-begin.htm#.V5djd_l97tQ – Nikhil Vartak Jul 26 '16 at 13:20

0 Answers0