note 87722 modified in function.bin2hex by danbrown

From: Date: Sat, 31 Jan 2009 23:35:39 +0000
Subject: note 87722 modified in function.bin2hex by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150050@lists.php.net to get a copy of this message
<?php if(!function_exists('bin2hex')) { function bin2hex($str) { $strl = strlen($str); $fin = ''; for($i =0; $i < $strl; $i++) { $fin .= dechex(ord($str[$i])); } return $fin; } } ?> --was-- <? if(!function_exists('bin2hex')) { function bin2hex($str) { $strl = strlen($str); $fin = ''; for($i =0; $i < $strl; $i++) { $fin .= dechex(ord($str[$i])); } return $fin; } } ?> http://php.net/manual/en/function.bin2hex.php

« previous php.notes (#150050) next »