Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
dvprog_11 [2020-02-06 12:04] Daniel Viström |
dvprog_11 [2020-02-06 13:02] Daniel Viström |
||
---|---|---|---|
Line 86: | Line 86: | ||
// Huvudprogram | // Huvudprogram | ||
include ' | include ' | ||
- | |||
- | // php har en massa färdiga funktioner, bl.a. för strängar. | ||
- | // Värdet som returneras kan skrivas ut eller | ||
- | // sparas i en variabel. | ||
- | echo strrev(' | ||
- | $text = ' | ||
- | $text2 = strrev($text); | ||
- | echo $text2 . '< | ||
$tal1 = 5; | $tal1 = 5; |