这段php do-while代码为什么会死循环呢?

2025-03-29 12:41:00
推荐回答(1个)
回答1:

这样是按值传递,你在repeat内对值的改变是影响不了那个$s的,需要改为function _repeat( &$i )