I got two arrays both have multiple values with std Class objects, I want to use 'array_intersect' but it shows "Severity: 4096 Message: Object of class stdClass could not be converted to string"
Controller Code:
$AlreadyInsertedList = $this->bill->GetBillsbyDate($Givendate); //array1
$NotInserted = $this->admin->GetACustomersbyArea($areaid); //array2
$finallist = NULL; //finalarray
$finallist = array_intersect($AlreadyInsertedList,$allcustomersbyarea); //Line number 88
//$array = json_decode(json_encode($finallist)); //already tried not working
Although it is giving the required results but with a lot of errors, I'm attaching a screen shot of it, do have a look at the scoll bar (a long length of errors)