I want to convert a C# row to PHP, but it doesn’t work (the result isn’t the same):
C#:
PHP:
Someone know how to do this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That code should return the same result.
The only problem I can think of is that the type of data inside “$header[$i]” is a string and not an integer. This causes PHP to parse the ASCII code of $header[$i] instead of the value it is supposed to represent:
Intended result:
Whereas using a string results in the following:
To remedy this: