Home >Backend Development >PHP Tutorial >大家帮忙看下这段代码哪有有关问题

大家帮忙看下这段代码哪有有关问题

WBOY
WBOYOriginal
2016-06-13 11:28:54773browse

大家帮忙看下这段代码哪有问题

<?php<br />$str='abcdefghijklmnopqrstuvwxyz'; <br />$count = 123456789;<br /><br />$str1 = $str[floor(floor(floor(floor(floor($count/26)/26)/26)/26)/26)];<br />$str2 = $str[floor(floor(floor(floor($count/26)/26)/26)/26)%26];<br />$str3 = $str[floor(floor(floor($count/26)/26)/26)%26];<br />$str4 = $str[floor(floor($count/26)/26)%26];<br />$str5 = $str[floor($count/26)%26];<br />$str6 = $str[$count%26];<br />echo $str1.'<br/>';<br />echo $str2.'<br/>';<br />echo $str3.'<br/>';<br />echo $str4.'<br/>';<br />echo $str5.'<br/>';<br />echo $str6.'<br/>';<br /><br />?>

报这个错:Notice: String offset cast occurred in E:\www\rand.php on line 5

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn