Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: array syntax

  1. #1
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    How do I add values to an array that already has values in it?

    PHP Code:
    for($i=0$i<count($contactsall); $i++){
        for(
    $j=0$j<count($dbdemo); $j++){
            if(
    $dbdemo[$j][1] == "checked"){
                
    $addedcontacts[] = $dbdemo[$j][0];//is this correct            
            
    }
            


        }

    $addedcontacts is a blank array, and Im trying to build it on the fly.... Is that correct?

  2.  

  3. #2
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Ok, dont worry about it. Ive solved the problem.... :classic:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com