Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么会显示 stdClass Object ( [jobid] => 1 ) stdClass Object ( [jobid] => 2 )
而不是值 1 和 2
<?php foreach($RowTable as $row) { print_r($row, false);?> } ?>
只需查看文档:
print_r() 以人类可读的方式显示有关变量的信息。
如果要打印值,请使用echo $row->jobid;.
echo $row->jobid;