Using PHP, how do I echo a line from a text file that starts with a specific value?
<p>Lets say the text file " data1.txt" contains:  </p>

<pre><code>56715||Jim||Green||19  
5678||Sara||Red||92    
53676||Mark||Orange||6  
56787||Mike||Purple||123  
56479||Sammy||Yellow||645  
56580||Martha||Blue||952
ect...
.
.  
</code></pre>

<p>I would like to echo only the line beginning with "5678||". "5678" is the exact $refVal or reference value. The line should display like this:</p>

<pre><code>My name is: $nameVar
My color is: $colorVar
My number is: $numVar
</code></pre>

<p>Thanks...</p>
