Expand|Select|Wrap|Line Numbers
- //This fuction is almost the same as the fuction str_split included in php5.
- function strsplt($thetext,$num)
- {
- if (!$num)
- {
- $num=1;
- }
- $arr=array();
- $xfive=floor(strlen($thetext)/$num);
- while ($ifive<=$xfive)
- {
- $yfive=substr($thetext,$jfive,$num);
- if ($yfive)
- {
- array_push($arr,$yfive);
- }
- $ifive++;
- $jfive=$jfive+$num;
- }
- return $arr;
- }
- $code=$_GET['code'];
- if ($code)
- {
- $size=strlen($code);
- $decode=strsplt($code, 1);
Am I doing wrong here?