对于功能不起作用

For function not working

该代码应包含 1087210878 之间的内容,但它只包含 10872 内容。

哪里出错了?你能帮帮我吗?

我认为你应该像这样在 int 变量中声明它,

$nereden = 10872;
$nereye = 10878;

如果你在字符串中去除它,它将与 $nereden="1"$nereye ="1" 进行比较,一次是 运行。

你写

   $nereden = "10872";
   $nereye = "10878";

  for($a=$nereden; $a<=nereye; $a++){ // put $a<=$nereye insted of $a<=nereye
   $site = "http://whosebug.com/";
     $link = "http://whosebug.com/questions/$a";

$variable ($) 必须在 php 中且变量值