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

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

WBOY
Release: 2016-06-13 11:28:54
Original
765 people have browsed it

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

<?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 />?>
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template