How can I list names of people with birthdays today from a .txt file in PHP?

I have a .txt list with a large number of birthdays, in a format like this:

1975-12-13|Amy Lee|[email protected]

I would like to create php code that would go through the whole list, find persons who have a birthday today, and list their names.

What I manage to do is this, but it is showing only one name, even tho there’s multiple birthdays at the same day:

for ($i=0; $i<count($f); $i++) {
    $info=explode ('|',$f[$i]);
    if (substr($info[0],5)==$today) {
        $firstlastname= $info[1];

return ''.$message.'';

I guess that I should use foreach there somehow, I’m not a pro in PHP obviously, but I don’t know how to do that. Any suggestions please?