0

I have a array like this

 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 ) )

I want to print like

echo $result->regno;
echo $result->receiveddate;

so on

Vimal
  • 1,140
  • 1
  • 12
  • 26
Nisha Garg
  • 65
  • 1
  • 15

1 Answers1

0

Use this

$result[0]->regno 
$result[0]->receiveddate
$result[0]->remarks
ThataL
  • 165
  • 3
  • 12