relationship disposition format conversion
Showing
1 changed file
with
17 additions
and
0 deletions
application/public/misc/relationship.php
0 → 100644
| 1 | <?php | ||
| 2 | $row = 1; | ||
| 3 | if (($handle = fopen("prashant.csv", "r")) !== FALSE) { | ||
| 4 | while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { | ||
| 5 | $num = count($data); | ||
| 6 | //echo "<p> $num fields in line $row: <br /></p>\n"; | ||
| 7 | $row++; | ||
| 8 | $dataa=""; | ||
| 9 | for ($c=0; $c < $num; $c++) { | ||
| 10 | $dataa.= $data[$c] . " -- "; | ||
| 11 | } | ||
| 12 | echo "'".substr($dataa,0,-3)."',"; | ||
| 13 | // echo ""; | ||
| 14 | } | ||
| 15 | fclose($handle); | ||
| 16 | } | ||
| 17 | ?> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment