🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #484

return TABLICA

#484
From: ajek
Date: Tue, 21 Aug 2001 13:09
25 lines
1248 bytes
Witam szanownych grupowiczow
Dopiero zaczynam poznawac PHP i mam problem

jest sobie funkcja
function cos () {
$i=0;
while ($i<=10)
    $tmp[$i][1]=$i;
    $tmp[$i][2]=$i;
    $tmp[$i][3]=$i;
    $tmp[$i][4]=$i;
    $tmp[$i][5]=$i;
 $i+=1;
 }
    return $tmp;

}

a potem robie tak

$wynik=cos();
dlaczego wynik jest pusty ?
nier zwraca mi tej tablicy
LUDZIE pomocy
Z pozdrowieniami ajek
Technical Details
Message-ID: <3b825e99@news.vogel.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.task.gda.pl!news.tpi.pl!news.vogel.pl!nnrp

Show Full Headers
Complete Article Headers
Reply-To: "ajek" <ajek007@wp.pl>
From: "ajek" <ajek007@wp.pl>
Newsgroups: pl.comp.lang.php
Subject: return TABLICA
Date: Tue, 21 Aug 2001 15:09:39 +0200
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2417.2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: pb13.zgora.sdi.tpnet.pl
X-Original-NNTP-Posting-Host: pb13.zgora.sdi.tpnet.pl
Message-ID: <3b825e99@news.vogel.pl>
X-Trace: news.vogel.pl 998399641 pb13.zgora.sdi.tpnet.pl (21 Aug 2001 15:14:01 +0200)
X-Complaints-To: Usenet@news.vogel.pl
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.task.gda.pl!news.tpi.pl!news.vogel.pl!nnrp
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit