Compress string and data in php. Some long strings has to be compressed in-order to pass the data. Use this below function to compress data in php and to uncompress data in php.
Compress Data :
gzcompress($string);
Uncompress Data :
gzuncompress($compressed_string);
Compress Data :
gzcompress($string);
Uncompress Data :
gzuncompress($compressed_string);