Web Hosting Talk







View Full Version : Another array php ?


Lippy
11-17-2002, 05:13 AM
1: In Java there is a .length function(or what ever its called) for arrays. Is there a similar function for php?

2: What is the command to break a loop in php?

***Edited to ask a second question as well***

i am a
11-17-2002, 06:43 AM
1.

$array = (.........);

$count = count($array);

$count now holds the number of values in $array

2.

break; // or
continue;

just breaks the inner loop though,there isn't really a "go to" in php that's i'm aware of...
:)

Lippy
11-17-2002, 06:58 AM
thanks