array unique bei mehrdimensionalen Arrays
Kann mir jemand sagen, wie ich es hin bekommen kann aus dem untenstehenden mehrdimensionalen Array das Ergebnis "testtabelle1" und "testtabelle2" jeweils 1x heraus zu bekommen?
Mit array_unique bekomme ich leider nur "testtabelle1"
$dbStruktur = array();
$dbStruktur = array(array("testtabelle1","feldname1","varchar","10"),
array("testtabelle1","feldname2","varchar","20"),
array("testtabelle2","feldname1","varchar","10"),
array("testtabelle2","feldname2","varchar","20")
);
Mit array_unique bekomme ich leider nur "testtabelle1"
$bs = array_unique ( $dbStruktur );
echo "<pre>";
print_r ( $bs );
Please also mark the comments that contributed to the solution of the article
Content-Key: 92124
Url: https://administrator.de/contentid/92124
Printed on: April 23, 2024 at 19:04 o'clock
2 Comments
Latest comment