1) { $paramRawArray = explode("\t",$result); foreach ($paramRawArray as $rkey => $rval) { list($key,$val) = explode('=',$rval); $paramArray[0][$key]=$val; } foreach ($paramArray as $ukey => $uval) { if ($_REQUEST['paramid'] == $uval['PARAMID']) { $paramVal = $uval['PARAMVALUE']; break; } } } return $paramVal; } function decompress ($data){ $total = strlen($data); for ($j=0;$j<$total;$j=$j+2){ $text .= chr(hexdec(substr($data,$j,2))); } return $text; } function compress ($data){ $total = strlen($data); for ($i=0;$i<$total;$i++){ $temp = dechex(ord(substr($data,$i,1))); if (strlen($temp)<2) { $temp = '0'.$temp; } $text .= $temp; } return $text; } ?>