Created
May 23, 2013 09:39
-
-
Save RusAlex/5634957 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<td>i</td> | |
<td>a</td> | |
<td>a</td> | |
</tr> | |
<tr> | |
<td>r</td> | |
<td>s</td> | |
<td>a</td> | |
</tr> | |
<tr> | |
<td>r</td> | |
<td>s</td> | |
<td>t</td> | |
</tr> | |
</table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = fopen('/tmp/test.txt','r'); | |
$content = fgetcsv($file,0,'|'); | |
?> | |
<table> | |
<?php foreach($content as $row) : ?> | |
<tr> | |
<td><?=$row[0]?></td> | |
<td><?=$row[1]?></td> | |
<td><?=$row[2]?></td> | |
</tr> | |
<?php endforeach;?> | |
</table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst | |
iaarstrs|rsatrs|rstarst |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment