Marko Vodja krožka
Pridružen/-a: Ned Apr 2006 19:16 Prispevkov: 44
|
Objavljeno: 15. Maj 2006 01:17 Naslov sporočila: [2. teden] Rešitve |
 |
|
1.
| Koda: | function funkc1($stevilo) {
return 10 * $stevilo;
}
function funkc2($a,$b) {
$c = $a * $b;
print "Rezultat je {$c}";
}
$a = funkc1(15);
funkc2($a,-$a); |
2.
| Koda: | $rezultat = dechex(3294917295);
mail("markoNO@SPAMstamcar.com","Nekaj zate :)",$rezultat); |
3.
| Koda: | $hash = md5("blabla");
print substr($hash,0,16); |
4.
| Koda: | function pretvori($beseda) {
$beseda = strtolower($beseda);
$beseda = str_replace("k","z",$beseda);
$beseda = str_replace("r","a",$beseda);
$beseda = str_replace("o","b",$beseda);
$beseda = str_replace("ž","a",$beseda);
$beseda = str_replace("e","v",$beseda);
print $beseda;
}
pretvori("Kako Ste Kaj Danes? Rožice Že Cvetijo, Kajne? O, Ja!"); |
5.
Reši sam  |
|