Article View: pl.comp.lang.php
Article #230584Re: array_fill
From: Rafal Podsiadly
Date: Wed, 29 Oct 2014 17:47
Date: Wed, 29 Oct 2014 17:47
17 lines
2008 bytes
2008 bytes
W dniu piątek, 19 września 2014 19:14:50 UTC+2 użytkownik platformowe głupki napisał: > pojawił się taki dziwny problem, > tworzę tablicę tym poleceniem, a później coś się dzieje w programie i > powstaje taka dziwna tablica: > > tablica[1]=1 > tablica[2]=1 > tablica[3]=1 > tablica[4]=1 > tablica[5]=1 > tablica[0]=1 > > co się dzieje w tej wyzwolonej europie? Aby sprawdzić tablice używaj var_dump($tablica); http://php.net/manual/en/function.array-fill.php z tego co tutaj pisza to fill tworzy od podanego indexu, sprawdz czy w którymś momęcie nie dodajesz do tablicy czegoś $tablica[] = 1;
Technical Details
Message-ID:
<ebfcc7d2-fc05-4977-9134-f2e8f552468f@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!newsfeed.pionier.net.pl!news.glorb.com!h15no1641404igd.0!news-out.google.com!u5ni16qab.1!nntp.google.com!s7no1413324qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<lvff6c$2tj$1@node2.news.atman.pl> <541B4192.7060605@ila.nie.ma> <541b5f5e$0$2371$65785112@news.neostrada.pl> <lvgtlu$eot$1@node2.news.atman.pl> <lvhoab$p24$1@node1.news.atman.pl>Show Full Headers
Complete Article Headers
X-Received: by 10.68.132.234 with SMTP id ox10mr8202307pbb.8.1414604867722; Wed, 29 Oct 2014 10:47:47 -0700 (PDT) X-Received: by 10.140.51.102 with SMTP id t93mr53080qga.8.1414604867460; Wed, 29 Oct 2014 10:47:47 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!newsfeed.pionier.net.pl!news.glorb.com!h15no1641404igd.0!news-out.google.com!u5ni16qab.1!nntp.google.com!s7no1413324qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Wed, 29 Oct 2014 10:47:47 -0700 (PDT) In-Reply-To: <lvhoab$p24$1@node1.news.atman.pl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=31.178.24.127; posting-account=reqlzgoAAACKWK1i9kGr8VyQtzu_4AF6 NNTP-Posting-Host: 31.178.24.127 References: <lvff6c$2tj$1@node2.news.atman.pl> <541B4192.7060605@ila.nie.ma> <541b5f5e$0$2371$65785112@news.neostrada.pl> <lvgtlu$eot$1@node2.news.atman.pl> <lvhoab$p24$1@node1.news.atman.pl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <ebfcc7d2-fc05-4977-9134-f2e8f552468f@googlegroups.com> Subject: Re: array_fill From: Rafal Podsiadly <spinacz24@gmail.com> Injection-Date: Wed, 29 Oct 2014 17:47:47 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit