prev()
和next()
回报没有结果,但current()
,end()
和reset()
没有,你可以在这里看到:prev()和next()返回任何结果
http://flamencopeko.net/songs_scans_skip_2.php
http://flamencopeko.net/songs_scans_skip_2.txt
<?php
echo current($arrFiles);
?>
<br />prev:
<?php
echo prev($arrFiles);
?>
<br />next:
<?php
echo next($arrFiles);
?>
<br />end:
<?php
echo end($arrFiles);
?>
<br />reset:
<?php
echo reset($arrFiles);
?>
最终目标是让跳跃按钮改变大扫描。有人说它必须用JS完成。我对PHP和JS都很好,但是我完全没有看到如何编写所需的函数。
这使得数组:
<?php
$arrFiles = array_diff(scandir("scans", 0), array(".", ".."));
$arrFiles = array_values($arrFiles);
$intCountFiles = count($arrFiles);
?>
您可以包括'$ arrFiles'在你的问题的内容?谢谢。 – phant0m
是的。该内容在文本和图像上都在页面上。我还发布了使这个数组成为现在的代码。 –