![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 60 Pomógł: 0 Dołączył: 8.03.2010 Skąd: Zielona Góra Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Nie wiem jak sprawdzić czy argument X w funkcji jest podany. Zwykłe isset() wywala błąd: Fatal error: Can't use function return value in write context in /var/www/strona/functions.php on line 8 Kod funkcji:
Ten post edytował pawel.ad 1.04.2010, 15:33:33 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 885 Pomógł: 463 Dołączył: 3.10.2009 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Na mój gust, to isset'em nie można tego sprawdzać:
Cytat Warning isset() only works with variables as passing anything else will result in a parse error. For checking if constants are set use the defined() function. i dalej Cytat Note: Because this is a language construct and not a function, it cannot be called using variable functions [za:] http://php.net/manual/en/function.isset.php Spróbuj użyć
Ten post edytował darko 1.04.2010, 19:52:23 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 2.10.2025 - 19:15 |