It shouldn't be allowed same emails within array:
[
["first" => "John", "last" => "Snow","email" => "[email protected]"],
["first" => "Sansa","last" => "Stark","email" => "[email protected]"],
["first" => "Rob","last" => "Stark","email" => "[email protected]"]
]
There can be unlimited number of elements of array type within outer array. Should I iterate with foreach and have some temp variable in which I am going to write email or is there a more efficient way?