Category : empty-list

I need to compare my two tables to know if they are empty and if so, not includ them in the result. I have the following code : public function parseJson() { foreach ($this->vendors as $row) { if ($row->legIntPurposes === $row->flexiblePurposes) { $this->results[] = [ ‘id’ => $row->id, ‘name’ => $row->name, ‘policyUrl’ => $row->policyUrl, ]; ..

Read more