You can split the line into an array with a regular expression (Pattern Search).
Example:
<?PHP
$line = "Tim McMahan";
$result = split(" +", $line);
while (list($key, $value) = each($result))
{
print "$key is set to $value<BR>";
}
?>
You can then use regular expression and if statements to select deturmine if a string matches what you want... for instance:
if (ereg('tim', $value))
{
print "value variable began with text 'tim'";
}
Tim
Pay For What You Use, Not What You Don't.
http://www.tier1host.net