Hey,
My thinking is not working today, can anyone help me? I have this
if ($_POST['enable_life'])
$i['lf'] = z_life($z);
if ($_POST['enable_death'])
$i['dh'] = z_death($z);
if ($_POST['enable_sleep'])
$i['sp'] = z_sleep($z);
$total_sections = count($i);
// How do i merge the arrays that are not empty?
// So i can get them all in line to merge here?
if (count > 1)
{
/** This is the merged array, it needs to be more flexible */
$final_array = array_merge($i['fb'], $i['tw']); // How to get all the non-empty things in there?
}
else
{
$final_array = $i[the_key_here];
}