Do I have to do anything different to access an array in a class? I have
var $apcs = array();
at the top of my class
I set it using
$line1-adj_array[$pos] = (integer) $value;
in the read-in part of the app that uses the class ($line1 is the object,
$pos is just a number)
Later
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:27:46 -0400 :
ImageString($this-im,1,65,5,apcs[0] = $this-apcs[0],$this-black);
Hm, try to use proper syntax here, ie:
ImageString($this-im,1,65,5,apcs[0] = . $this-apcs[0],$this-black);
Alexander Skwar
--
How to quote:
: [PHP] arrays in a class
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:27:46 -0400 :
ImageString($this-im,1,65,5,apcs[0] =
$this-apcs[0],$this-black);
Hm, try to use proper syntax here, ie:
ImageString($this-im,1,65,5,apcs[0] = .
$this-apcs[0],$this-black);
Alexander Skwar
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 :
Wow. Now I'm feeling dumb... It does work with my non-array vars though -
Yes, it doesn't suprise me that it works with non arrays. The parser
doesn't seem to be clever enough to catch that you want to pass [0] as
the array
Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:45 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] arrays in a class
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 :
Wow. Now I'm feeling dumb... It does
5 matches
Mail list logo