Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvprog_09 [2015-02-11 22:43] Daniel Viström |
dvprog_09 [2015-02-11 22:48] Daniel Viström |
||
---|---|---|---|
Line 25: | Line 25: | ||
file_put_contents(' | file_put_contents(' | ||
- | // Läser en textfil till en sträng. | + | $textfil = ' |
- | $str = file_get_contents(' | + | // Läser en textfil till en sträng. |
- | echo nl2br($str) . '< | + | $str = file_get_contents($textfil); |
+ | echo nl2br($str) . '< | ||
// Läser in en textfil till en array, radbrytning ger ny " | // Läser in en textfil till en array, radbrytning ger ny " |