Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Sep 5th, 2007, 11:13 PM   #1
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 99
Rep Power: 2 MiKuS is on a distinguished road
joining associative arrays

I have 3 arrays, they all hold the same information except for one row, which changes in each of the arrays:

    [cal_id] => 7
    [cal_create_by] => admin
    [cal_date] => 20070704
    [cal_time] => 60000
    [cal_duration] => 120
    [cal_name] => Test Address
    [cal_description] => This is whats wrong with the machine
    [cal_data] => 5982462
    [cal_login] => user1
    [cal_lastname] => person
    [cal_firstname] => one
--
    [cal_id] => 7
    [cal_create_by] => admin
    [cal_date] => 20070704
    [cal_time] => 60000
    [cal_duration] => 120
    [cal_name] => Test Address
    [cal_description] => This is whats wrong with the machine
    [cal_data] => $106. Please call 1/2 hour prior to arriving.
    [cal_login] => user1
    [cal_lastname] => person
    [cal_firstname] => one
--
    [cal_id] => 7
    [cal_create_by] => admin
    [cal_date] => 20070704
    [cal_time] => 60000
    [cal_duration] => 120
    [cal_name] => Test Address
    [cal_description] => This is whats wrong with the machine
    [cal_data] => Map 145 - H1  
    [cal_login] => user1
    [cal_lastname] => person
    [cal_firstname] => one

How can i join these arrays so i have something like

    [cal_id] => 7
    [cal_create_by] => admin
    [cal_date] => 20070704
    [cal_time] => 60000
    [cal_duration] => 120
    [cal_name] => Test Address
    [cal_description] => This is whats wrong with the machine
    [cal_data1] => 5982462
    [cal_data2] => $106. Please call 1/2 hour prior to arriving.
    [cal_data3] => Map 145 - H1  
    [cal_login] => user1
    [cal_lastname] => person
    [cal_firstname] => one
MiKuS is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Confusion With Pointers and Arrays JawaKing00 C 10 Sep 14th, 2006 7:33 AM
Arrays or Vectors? can342man C++ 2 Apr 20th, 2006 3:57 PM
Pairing elements of two arrays...please help!!! smg1001 Java 14 Jan 17th, 2006 5:01 PM
Arrays in PHP MrMan9879 PHP 6 Jan 12th, 2006 9:18 PM
Arrays Gunman C++ 17 Oct 20th, 2005 6:11 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC