Results 1 to 3 of 3
  1. #1

    Another array php ?

    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***
    Last edited by Lippy; 11-17-2002 at 05:26 AM.
    LipWeb.Net
    "Less Lip More Service"
    Providing Quality Hosting at Fair Prices
    AIM: LipWebNet MSN: daniel[at]lipweb.net [color=red]

  2. #2
    Join Date
    Nov 2000
    Location
    Vancouver, BC
    Posts
    283
    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...

  3. #3
    thanks
    LipWeb.Net
    "Less Lip More Service"
    Providing Quality Hosting at Fair Prices
    AIM: LipWebNet MSN: daniel[at]lipweb.net [color=red]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •