Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] porownanie kodu
me123
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 21.02.2007

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


Witam w manualu znalazlem cos takiego
  1. <?php
  2. function cleanmysql($arr,$arr2) {
  3. foreach ($arr as $gt1=>$gt2) {
  4. if (is_array($arr[$gt1])) {
  5. list($arr[$gt1],$arr2[$gt1])=cleanmysql($arr[$gt1],$arr2[$gt1]);
  6. } else {
  7. $arr[$gt1]=$arr2[$gt1]=$gt2;
  8. }
  9. }
  10. return array($arr,$arr2);
  11. }
  12.  
  13. list($_GET,$GLOBALS) = cleanmysql($_GET,$GLOBALS);
  14. list($_POST,$GLOBALS) = cleanmysql($_POST,$GLOBALS);
  15. list($_COOKIE,$GLOBALS) = cleanmysql($_COOKIE,$GLOBALS);
  16. ?>

ii mam pytanie czy jak bym dal zamiast tego cos takiego

  1. <?php
  2. ?>
to bym otrzymal ten sam efekt?
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: 23.08.2025 - 14:27