Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 18th, 2008, 11:32 AM
Registered User
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default using file() questions

how do i cocatinate multipal arrays together????
Reply With Quote
  #2 (permalink)  
Old December 18th, 2008, 05:59 PM
Registered User
 
Join Date: Dec 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can try this example:

PHP Code:
<?php
    
//Example Array A
    
$ArrayA[] = "Morgan";
    
$ArrayA[] = "Mintzberg";
    
$ArrayA[] = "Maslow";

    
//Example Array B
    
$ArrayB[] = "Schuhmacher";
    
$ArrayB[] = "Schonberger";
    
$ArrayB[] = "Schein";

    
//Example Array C
    
$ArrayC[] = "Imai";
    
$ArrayC[] = "Ishikawa";
    
$ArrayC[] = "Jacobs";    
    
    
//Use function "array_merge_recursive()"
    
$MergedArray array_merge_recursive($ArrayA,$ArrayB,$ArrayC);
    
    
//Testing
    
var_dump($MergedArray);
?>
Good luck!
__________________

LinkItAll
Business Web Applications

Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 2 April 30th, 2013 07:57 AM
Please help with these questions AccessAasif@aol.com C# 1 February 28th, 2008 07:14 PM
C++ questions jam93 C++ Programming 1 August 19th, 2007 11:39 PM
How to Questions (Select Into) (remote file) gmoney060 Access ASP 2 January 3rd, 2005 12:02 AM
many questions Frank1111 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 December 22nd, 2003 09:59 PM



All times are GMT -4. The time now is 09:28 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.