How to use pack in PHP

This article describe about pack Function in PHP.
  • 1396

pack() Function

This function packs data into a binary string.

Syntax

pack(format,args+)

Example

<html>
<body>
<?php
echo pack("C3",80,72,80);
?>
</body>
</html>

 

Output


pack-php.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.