Question
About str_pad
Solution
The code is written like this
$the_max = 32;
$the_max = (int)intval(strlen($the_max));
print(str_pad('1',$the_max,'0',STR_PAD_LEFT));
?>
When I copy the code, the result is still 1. What's going on?
[ ]
Reference answer
No, my test is correct 01
Reference answer
The original post was published by lsx220 on 2009-1-4 02:03 [url=http://bbs.111cn.cn/redirect.php?goto=findpost&pid=814107&ptid=100305]Link tag [img]http://bbs. 111cn.cn/images/common/back.gif[/img][/url]
No, my test is correct 01
I was eerily right again, damn it.