convert char array to string in php

MartijnH

New Member
I have an array of characters created using chr() function like this \[code\]for($i =0;$i<strlen($result);$i+=1){ echo chr((int)$result[$i]).'<br/>'; $response_array[] = chr((int)$result[$i]);}$response = implode($response_array);echo $response;\[/code\]Last echo prints number 250 which is not what I want. I want to get the string from the chars inside the $response_array and also to be able to parse the string with xml php modules, because it is xml.What do I do wrongI use dll file which loads resource like this\[code\] $result = $callback->data; \[/code\]data is C# byte[] array.
 
Back
Top