FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » having trouble using gd imageline in foreach loop
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: having trouble using gd imageline in foreach loop [message #172806 is a reply to message #172803] Thu, 03 March 2011 02:51 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 03/03/11 00:08, Lwangaman wrote:

Oh yes, and:

> $fibsequence=[1,1,2,3,5,8,13,21,34,55,89,144,233,377,610];

should be either:

$fibsequence = array(1,1,2,3,5,8,13,21,34,55,89,144,233,377,610);

or:

$fibsequence[]=1;
$fibsequence[]=1;
$fibsequence[]=2;
$fibsequence[]=3;
$fibsequence[]=5;
$fibsequence[]=8;
$fibsequence[]=13;
$fibsequence[]=21;
$fibsequence[]=34;
$fibsequence[]=55;
$fibsequence[]=55;
$fibsequence[]=89;
$fibsequence[]=144;
$fibsequence[]=233;
$fibsequence[]=377;
$fibsequence[]=610;

see http://uk2.php.net/manual/en/language.types.array.php

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: strange behaviour in assignment expr.
Next Topic: cookies and Firefox 3.6.15 - ugh
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:58:07 GMT 2024

Total time taken to generate the page: 0.04765 seconds