I am trying to return an array of strings. I do this:
$errors[] = toolbarCheckCreds($_COOKIE['uname'], $_COOKIE['pword'], $_COOKIE['rememberMe']);
echo $errors[0];
and this in the function at the end:
return $errors;
and I set an error like this:
$errors[] = "error goes here!";
Basically, when I return my array, and echo it, it gives me the following output:
Array