I have a retrieve statement that goes like this
$arrayAID = request('agentID');
$sizeAID = count($arrayAID);
$aidList = "null";
for($a = 0; $a < $sizeAID; $a++){
$email = DB::table('insuranceAgents')
->select('email')
->where('agentID', '=', $arrayAID[$a])
->get();
dd($email);
}
which returns the result
What can I do to modify this $email to only get "[email protected]" as my result?
