🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: return TABLICA

#486
From: Aleksander Piotrowski
Date: Tue, 21 Aug 2001 14:23
22 lines
1229 bytes
On Tue, 21 Aug 2001 15:09:39 +0200, ajek <ajek007@wp.pl> wrote:
> 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;
> 
> }

po pierwsze dodaj klamre otwierajaca po: while( $i <= 10 )

po drugie zamien nazwe f-cji. 
dlaczego? zobacz: http://www.php.net/cos

po tych zmianach kod dziala ( php 4.0.6 )
Technical Details
Message-ID: <slrn9o4rt0.inm.alek@piestrak.waw.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.tpi.pl!not-for-mail
References: <3b825e99@news.vogel.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.tpi.pl!not-for-mail
From: alek@piestrak.waw.pl (Aleksander Piotrowski)
Newsgroups: pl.comp.lang.php
Subject: Re: return TABLICA
Date: 21 Aug 2001 14:23:53 GMT
Organization: tp.internet - http://www.tpi.pl
Lines: 22
Message-ID: <slrn9o4rt0.inm.alek@piestrak.waw.pl>
References: <3b825e99@news.vogel.pl>
NNTP-Posting-Host: pr133.warszawa.sdi.tpnet.pl
X-Trace: news.tpi.pl 998403833 5206 213.25.54.133 (21 Aug 2001 14:23:53 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 21 Aug 2001 14:23:53 GMT
User-Agent: slrn/0.9.7.1 (OpenBSD)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit