Hi all...once again 😉 Here is a snippet of code that I am having an issue with. The real issue is where count($test->errors) takes place. What I think is happening is that it is counting how many data members are set in the class, and is returning that number...because I have 6 set (including the error being set), and the output shows my error 6 times.
What I am trying to accomplish is to see if there are any errors with this object. If there are, output each error to the user.
if((count($obj->errors)) != 0){
foreach($obj->errors as &$errors){
echo $errors;
}
}