Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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????
 
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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 4 June 22nd, 2019 07:03 AM
Please help with these questions [email protected] C# 1 February 28th, 2008 07:14 PM
C++ questions jam93 C++ Programming 1 August 19th, 2007 10: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.