Suppose I have the following arrays:
$table_names = array('foo', 'bar');
And I have some other arrays:
$foo = array('1', '2', '3');
$bar = array('4', '5', '6');
I want to check if the names stored in $table_names exist as independent arrays. For example:
foreach($table_names as $names) {
// Check if array exists with name $names
}
Can anyone please tell me if it's possible?
I'm basically exporting my database in PHP array format. I upload the file using the script and then I want to use those arrays in my code so I can show particular information on screen without having to add data into database.
Thank you in advance! Cheers