[nycphp-talk] Experts help needed (Sessions)
Joseph Crawford
codebowl at gmail.com
Thu Aug 4 09:11:39 EDT 2005
I have also implemented this function
function str_mix($str1, $str2) {
if(strlen($str1) != strlen($str2)) return FALSE;
else {
$len1 = strlen($str1);
$string = '';
for($x = 0; $x <= $len1; $x++) {
$string .= $str1{$x}.$str2{$x};
}
return $string;
}
}
i thought of using str_shuffle but that gives different results every time,
this basically just takes the 1st letter from the 1st string and the 1st
letter from the 2nd string combines etc.. basically every other letter is
string1 every other letter is string2.
--
Joseph Crawford Jr.
Codebowl Solutions, Inc.
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050804/f21ac611/attachment.html>
More information about the talk
mailing list