1
$arr = array(235,14,123,10);

How can i convert php byte array to int value. I have searched lot in stackoverflow, there is no solution.

Aruljothi
  • 497
  • 1
  • 6
  • 14
  • in c# is possible using Bitconverter to int – Aruljothi Oct 23 '13 at 05:39
  • See this link , will solve your problem [How to convert byte array to integer in php](https://stackoverflow.com/questions/12683833/how-to-convert-byte-array-to-integer-in-php) or See this PHP mannual [PHP Manual, Pack data into binary string](http://php.net/manual/en/function.pack.php) – Zeeshan Oct 23 '13 at 05:54
  • thanks its working now i got the solution – Aruljothi Oct 23 '13 at 06:32
  • OK, if it helps you, then Accept this answer. Thanks – Zeeshan Oct 23 '13 at 06:37

0 Answers0