note 41748 added to ref.strings

From: Date: Wed, 21 Apr 2004 14:48:06 +0000
Subject: note 41748 added to ref.strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-68442@lists.php.net to get a copy of this message
here are two functions which i did not find here strhex and hexstr, for converting strings into hex and from hex to strings function strhex($string) { $hex=""; for ($i=0;$i<strlen($string);$i++) $hex.=dechex(ord($string[$i])); return $hex; } function hexstr($hex) { $string=""; for ($i=0;$i<strlen($hex)-1;$i+=2) $string.=chr(hexdec($hex[$i].$hex[$i+1])); return $string; } ---- Manual Page -- http://www.php.net/manual/en/ref.strings.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41748 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41748&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41748&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68442) next »