Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

encode zlib php

<?php
	$str = 'hello world';
	$enc = zlib_encode($str, ZLIB_ENCODING_DEFLATE);
	echo bin2hex($enc); // 789ccb48cdc9c95728cf2fca4901001a0b045d
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #encode #zlib #php
ADD COMMENT
Topic
Name
8+1 =