Hi !
Please help me to convert this PERL code to PHP
FIle: member.txt
Lisa|lisa@yahoo.com|92134|408-224-2167
Kevin|kevin@yahoo.com|92346|408-223-2292
Tom|tom@yahoo.com|97321|408-943-2547
Tim|tim@yahoo.com|93876|408-356-2604
open(FILE, "/path/to/member\.txt") ;
@array = <FILE>;
close(FILE);
foreach $line(@array) {
chomp($line);
($name, $email, $zipcode, $phone) = split(/\|/, $line);
$print_line .="Name: $name<br>Email: $email<br>Zipcode: $zipcode<br>Phone: $phone<br><br>";
}
print "Content-type: text/html\n\n";
print $print_line;
exit;
Thanks !
PS: I'm learning PHP by convert Perl code to PHP code
Please help me to convert this PERL code to PHP
FIle: member.txt
Lisa|lisa@yahoo.com|92134|408-224-2167
Kevin|kevin@yahoo.com|92346|408-223-2292
Tom|tom@yahoo.com|97321|408-943-2547
Tim|tim@yahoo.com|93876|408-356-2604
open(FILE, "/path/to/member\.txt") ;
@array = <FILE>;
close(FILE);
foreach $line(@array) {
chomp($line);
($name, $email, $zipcode, $phone) = split(/\|/, $line);
$print_line .="Name: $name<br>Email: $email<br>Zipcode: $zipcode<br>Phone: $phone<br><br>";
}
print "Content-type: text/html\n\n";
print $print_line;
exit;
Thanks !
PS: I'm learning PHP by convert Perl code to PHP code