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_11 [2013-04-12 09:11] Daniel Viström |
dvprog_11 [2016-03-16 11:36] Daniel Viström |
||
---|---|---|---|
Line 64: | Line 64: | ||
* göra dem tillgängliga med include. | * göra dem tillgängliga med include. | ||
*/ | */ | ||
- | // include(' | + | include(' |
// php har en massa färdiga funktioner, bl.a. för strängar. | // php har en massa färdiga funktioner, bl.a. för strängar. | ||
Line 70: | Line 70: | ||
// sparas i en variabel. | // sparas i en variabel. | ||
echo strrev(' | echo strrev(' | ||
- | $text = strrev(strtoupper('.dlrow olleH')); | + | $text=' |
- | echo $text . '< | + | $text2=strrev($text); |
+ | echo $text2 . '< | ||
$tal1 = 5; | $tal1 = 5; |