$db->Query($sql);
while ($row=$db->FetchRow())
{
$this->UserInfos[$this->ThisPageCount] = new UserBaseInfo($row['USER_ID']);
$this->ThisPageCount++;
}
}
怎样输出$this->ThisPageCount++;这一句话
常用:
在类的方法中
echo "hello world";
var_dump( "hello world");
print_r( "hello world");
后面跟上:
exit;
在类的方法中
echo "hello world";
var_dump( "hello world");
print_r( "hello world");
后面跟上:
exit;
温馨提示:答案为网友推荐,仅供参考
第1个回答 2017-10-20
用var_dump($this->ThisPageCount++);
第2个回答 2010-09-27
echo
-------------------------------
$x=$this->ThisPageCount++;
echo $x;
没输出的话可能$x值为0,可以var_dump($x)看看
-------------------------------
$x=$this->ThisPageCount++;
echo $x;
没输出的话可能$x值为0,可以var_dump($x)看看
第3个回答 2010-09-27
最常用的就是echo 比如输出编程最常用的"hello world"就写成:echo "hello world";
第4个回答 2010-09-29
return;
echo ;
print_r;
echo ;
print_r;
第5个回答 2010-09-27
可以补充一下问题吗!或者把你的源码拿出来一起研究下