note 98526 deleted from ref.strings by danbrown

From: Date: Mon, 21 Jun 2010 12:01:20 +0000
Subject: note 98526 deleted from ref.strings by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170344@lists.php.net to get a copy of this message
Note Submitter: Sam Yong - hellclanner at live dot com ---- A better & faster version of str2bin contributed by dkflbk at nm dot ru in 2005 <?php function strbin($s){ $out = ''; $l = strlen($s)-1; for($i=-1; $i++ < $l;) { $out .= str_pad(decbin(ord($s{$i})),8,'0',STR_PAD_LEFT); } return $out; } ?>

« previous php.notes (#170344) next »