On Thu, July 12, 2007 3:45 am, John Comerford wrote:
> Is there a better way of doing the following:
>
> $Rows[] = array();
> $currentRow = count($Rows) - 1;
> $Rows[$currentRow]['test'] = "this is a test";
>
> Specifically I am wonder if I can avoid having to use 'count'.
count() is not slow, rea
As you guys can probably guess from the question I'm still getting to
grips with some parts of php.
I had stripped down the code for my original post, maybe this will clear
things up a bit:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
$Rows
John Comerford wrote:
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
I imagine that you are doing other actions between the above three lines?
Correct?
Really, the simplest way of doin
M. Sokolewicz wrote:
Stut wrote:
Zoltán Németh wrote:
2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta:
John Comerford wrote:
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
Stut wrote:
Zoltán Németh wrote:
2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta:
John Comerford wrote:
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
Specifically I am won
Zoltán Németh wrote:
2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta:
John Comerford wrote:
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
Specifically I am wonder if I can
2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta:
> John Comerford wrote:
> > Hi Folks,
> >
> > Is there a better way of doing the following:
> >
> > $Rows[] = array();
> > $currentRow = count($Rows) - 1;
> > $Rows[$currentRow]['test'] = "this is a test";
> >
> > Specifically I am won
On Thu, 12 Jul 2007 18:45:36 +1000, John Comerford <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> Is there a better way of doing the following:
>
> $Rows[] = array();
> $currentRow = count($Rows) - 1;
> $Rows[$currentRow]['test'] = "this is a test";
>
> Specifically I am wonder if I can avoid having
John Comerford wrote:
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
Specifically I am wonder if I can avoid having to use 'count'.
1) The code above will produce a $currentRow of -1 wh
On Thu, 12 Jul 2007 18:45:36 +1000, John Comerford <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> Is there a better way of doing the following:
>
> $Rows[] = array();
> $currentRow = count($Rows) - 1;
> $Rows[$currentRow]['test'] = "this is a test";
>
> Specifically I am wonder if I can avoid having
10 matches
Mail list logo