How can I fetch the object from the array; I'm getting this data from the query.
I query this table:
DB::select("SELECT * FROM verified_data where target_id=3");
and getting this result:
array(124) {
[0]=>
object(stdClass)#445 (8) {
["id"]=>
int(83)
["user_id"]=>
int(0)
["target_id"]=>
int(3)
["target_type"]=>
string(6) "assets"
["user_comments"]=>
string(13) "Well and good"
["created_at"]=>
string(19) "2016-08-11 18:35:39"
["updated_at"]=>
string(19) "2016-08-11 18:35:39"
["is_verified"]=>
int(1)
}
[1]=>
object(stdClass)#446 (8) {
["id"]=>
int(84)
["user_id"]=>
int(0)
["target_id"]=>
int(3)
["target_type"]=>
string(6) "assets"
["user_comments"]=>
string(13) "Well and good"
["created_at"]=>
string(19) "2016-08-11 18:48:07"
["updated_at"]=>
string(19) "2016-08-11 18:48:07"
["is_verified"]=>
int(1)
}
[2]=>
object(stdClass)#447 (8) {
["id"]=>
int(85)
["user_id"]=>
int(0)
["target_id"]=>
int(3)
["target_type"]=>
string(6) "assets"
["user_comments"]=>
string(13) "Well and good"
["created_at"]=>
string(19) "2016-08-11 18:48:26"
["updated_at"]=>
string(19) "2016-08-11 18:48:26"
["is_verified"]=>
int(1)
}
And I want the ["is_verified"] from the this data, how can I get this in a variable and then display it in my input value?