i'm alittle stuck with the array below that is produced by a session variable on my site. It seems to contain objects within the arrays, and this has really thrown me as i'm no great PHPer and i'm just going round in circles!!
What i want to do is look through the array [called 'file_uploads' see below] and remove any arrays it contains that are called 'flexinode_10' or 'flexinode_something'.
Then reconstruct the session variable minus the 'flexinode' arrays.
Hope that makes sense.
Here's an example array ['file_uploads'], the array could contain X amount of arrays, depending on how many files are uploaded.
Array ( //i want to keep this array [upload_1] => stdClass Object ( [filename] => ar-lgflag.gif [filemime] => image/gif [filepath] => /tmp/ar-lgflag.gif [error] => 0 [filesize] => 7053 [source] => upload_1 [list]=> 1 [_filename] => files/ar-lgflag.gif ) //i want to remove this array [flexinode_10] => stdClass Object ( [filename] => brxbxp65530.jpg [filemime] => image/jpeg [filepath] => /tmp/brxbxp65530.jpg [error] => 0 [filesize] => 20187 [source] => flexinode_10 [_filename] => files/brxbxp65530.jpg ) )
Any help or a push in the right direction would be amazing, as i'm just going on trial and error and getting nowhere!!!