I have a json array returned from a validator thus:
{ "email":["Email must not be empty","Email must be valid email"],
"password":["Password must not contain whitespace"],
"rpassword":["Rpassword must not be empty"]
}
The data was returned from (an my aim is to get the first value "Email must not be empty" knowing well that 'email' must not always be the first object):
$data = json_decode($datas, true);
//echo $data[0][0]; // this is what was tried!