User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,472 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,941 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Dynamic Declaration of Arrays Keys

Join Date: Jul 2007
Posts: 9
Reputation: CMCDragonkai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CMCDragonkai CMCDragonkai is offline Offline
Newbie Poster

Re: Dynamic Declaration of Arrays Keys

  #8  
Feb 23rd, 2008
Oh you nearly did it. The thing is you misunderstood one part of what I wanted. Your code eliminates EVERYTHING but the $keep. But I want to eliminate the other elements in the array in which there is the $keep. This means that in a 2D array, In which there is array of arrays. I want to only eliminate the elements that are inside a certain array, Not all the arrays.

When I do this for example.

array_flow($typearray, $element);

It gives this

Array
(
[0] => Array
(
[1] => es
)

[1] =>
[2] =>
)

But the [1] and [2] should still hold what it should hold.

You're really close, wow I never thought it could be done like this.
Reply With Quote  
All times are GMT -4. The time now is 5:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC