Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Zmienna
-Gość_Mike-
post
Post #1





Goście







Mam taki skrypt

  1. <?
  2.  
  3. function ola() { 
  4.  
  5. $x = 9;
  6.  
  7. }
  8.  
  9. echo $x;
  10.  
  11. ?>


I problm jest taki, ze zmienna sie nie wyświetla (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) Zrobiłem coś takiego

  1. <?
  2.  
  3. function ola() { 
  4.  
  5. $x = 9;
  6.  
  7. }
  8.  
  9. global $x;
  10.  
  11. echo $x;
  12.  
  13. ?>


I tez nie działa (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) Moze ktoś wytłumaczyć dlaczego?
Go to the top of the page
+Quote Post

Posty w temacie
- Gość_Mike   [php]Zmienna   25.04.2006, 11:44:00
- - nospor   z pomoca przyjdzie manual: http://pl.php.net/manua...   25.04.2006, 11:49:09
- - Vogel   bo nie wywołałeś funkcji. a więc po kolei. [PHP]...   25.04.2006, 11:54:11


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 - 00:06