We have introduced to our friends
PHP unpack function definition
to decompress bit string data.
Syntax:
string pack(string format, mixed [args]...);
Return value:
Array
PHP unpack function type:
Data processing
PHP unpack function Content Description
This function is used to decompress the bit string data. This function has exactly the same functionality and usage as the Perl function of the same name. The parameter format is the compressed format.
PHP unpack function example 1
<ol class="dp-xml"><li class="alt"><span><span class="tag"><</span><span> ?php </span></span></li><li><span>$</span><span class="attribute">data</span><span> = </span><span class="attribute-value">"PHP"</span><span>; </span></li><li class="alt"><span>print_r(unpack("C*",$data)); </span></li><li><span class="tag">?></span><span> </span></span></li></ol>
Output: