I have a PHP script that reads the contents of a file and stores it into a variable. I want to split the text stored by the new line entries and then search the array[0] value for a specific value.

That is my idea. Here is my situation.

I have a directory file with specific entries.

```
Entry1_two_term3_stuff
Entry2_two_term3_stuff
Entry3_two_term3_stuff

```

This will be stored into a variable. How do I search this for Entry2 and then get the whole line to work with?