I'm making some form validation and this is how I output it:
if(isset($myvalidation)) {
echo $myvalidation->form_errors('pass');
}
And it works.
The problem arise when I try to concatenate it with string, like so:
if(isset($myvalidation)) {
echo "First" . $myvalidation->form_errors('pass') . "Last";
}
The output is odd: I see "First" at the end of my outputted error.
Did I made some mistake or something?