0
循環打印陣列我有這樣沒有在PHP
Array ([0] => stdClass Object ([regno] => 2017/032173
[receiveddate] => 2017-04-11 [diarydate] => 2017-04-11 [actiondate] =>
2017-04-11 [idproofdetail] => [channel] => N [remarks] =>
[grvcategory] => [name] => cdssfsdf [address] => dfsfsdfsd
[grvdistrict] => [grvstate] => [grvcountry] => [pincode] => [gtype] =>
00 [fromorg] => [fromorgname] => Office
[fromorgofficer] => Sh. BM [fromorgdesignation] =>
Under Cell))
我想打印像
echo $result->regno;
echo $result->receiveddate;
等
您可以在陣列使用$結果[0] - > regno –
什麼是錯誤的循環? – nogad
如果你得到一些具體的價值,那就沒關係。但是如果你得到所有的值,那麼循環是合適的。 –