Hallo Leute,
folgendes Array
Am ende muss folgendes Ausgegeben werden.
Beispiel:
nun sollte ich alle daten anhand der ID bekommen also wieder mit einer neuen foreach ---
aber das will nicht so recht .. kann auch sein das ich mich ein bisschen verlaufen habe
jeweils pro Datensatz und pro Array
folgendes Array
Code:
Array ( [anrede] => Array ( [BI2009] => Array ( [0] => Herr [1] => Herr [2] => Herr ) [O76010] => Array ( [0] => Herr [1] => Herr ) [06W011F] => Array ( [0] => Herr [1] => Herr [2] => Herr ) ) [titel] => Array ( [BI2009] => Array ( [0] => [1] => [2] => ) [O76010] => Array ( [0] => [1] => ) [06W011F] => Array ( [0] => [1] => [2] => ) ) [vrname] => Array ( [BI2009] => Array ( [0] => Max [1] => Franz [2] => Franz ) [O76010] => Array ( [0] => Franz [1] => Elfriede ) [06W011F] => Array ( [0] => Max [1] => Otto [2] => Martin ) ) [nname] => Array ( [BI2009] => Array ( [0] => Mustermann [1] => Hansen [2] => Maier ) [O76010] => Array ( [0] => Otto [1] => Hansen ) [06W011F] => Array ( [0] => Hansen [1] => Hansen [2] => Maier ) ) [phone] => Array ( [BI2009] => Array ( [0] => [1] => [2] => ) [O76010] => Array ( [0] => [1] => ) [06W011F] => Array ( [0] => [1] => [2] => ) )
Beispiel:
PHP-Code:
$id = BI2009
$anrede = Herr
$titel = "";
$vrname = "Max";
$nname = "Mustermann";
$phone = "";
PHP-Code:
$i = 0;
foreach($_POST["anrede"] as $anrede)
{
$new_array = array();
$i = $i++;
$new_array = array_shift($new_array,$anrede);
}
PHP-Code:
$i = 0;
foreach($new_array as $ID)
{
$i = $i++;
$return .= $ID;
}
jeweils pro Datensatz und pro Array
Kommentar