OK I have the following values stored in an array called $results:
Array ( [0] => Errors: [1] => co_aut130_last_name [2] => co_aut130_first_name [3] => co_aut130_city [4] => co_aut130_country )
I have the following code for displaying the missing fields that are not entered in the form once posted:
if($results[0]=='Errors:') {
foreach ($results as $i=>$e)
{
if ($i>0) {
echo "<li>$e</li>";
}
}
}
which outputs the following:
co_aut130_last_name
co_aut130_first_name
co_aut130_city
co_aut130_country
What would like as an output would be the following:
Last Name
First Name
City
Country
I think it's simple but I'm very unfamiliar with string manipulation. Can someone give me an hint please?
Thanks 🙂