This is written in C#
ASCIIEncoding asciiEncoding = new ASCIIEncoding();
byte[] something= new byte[checked (buffer.Length - 1 + 1)];
str = asciiEncoding.GetString(something);
I am trying to find a function in PHP that does the same thing as asciiEncoding.GetString()
Is there any?