Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> losowe zmienne
lol
post
Post #1





Grupa: Zarejestrowani
Postów: 32
Pomógł: 0
Dołączył: 9.05.2003

Ostrzeżenie: (0%)
-----


mam taki problem:

[php:1:72beb36e53]<?php
if ($a="slon") {
$b="malpa" || $b="ssak"; <-- i wlasnie tu problem, poniewaz chcialbym aby zmienna byla losowa tzn. przy jednym zaladowaniu miala wartosc malpa, przy nastepnym ssak itd.
}

?>[/php:1:72beb36e53]
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
scanner
post
Post #2





Grupa: Zarząd
Postów: 3 503
Pomógł: 28
Dołączył: 17.10.2002
Skąd: Wrocław




(IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) To będzie duża tablica... (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 02:19