title: output raw binary integer in php
body: <p>In PHP, I have some integer variables with values from 0-65535. I need to echo/print it directly, NOT as a printed sequence of characters like printing the string "1281" but the raw binary value. Also I need it so the binary integer sent to the output will always be exactly 2 bytes (zero bytes sent if needed so that it is always 2 bytes). How do I do this in php?</p>