1
Ich versuche, meine Array in dieser Struktur bleiben zu machen:Modify Array Struktur
array
(
0 => array (
"url"=> "http://localhost/theme/wp-content/uploads/2017/08/img2.png"
"caption"=> "title text test"
)
)
Derzeit mein Array wie folgt aussieht:
array
(
"url" => "http://localhost/theme/wp-content/uploads/2017/08/065.jpg"
"caption" => "test other capition"
)
ich die beiden Array
zu verbinden versucht$first = array();
$NewArray = array($first, $urlsCaptions);
Ausgang:
array(
0 => array(),
1 => array(
"url" => "http://localhost/theme/wp-content/uploads/2017/08/065.jpg"
"caption" => "test other capition"
)
)
Wie erstelle ich das Array korrekt, mit der Struktur identisch mit dem ersten Array meiner Frage?
Versuchen Sie, diese '$ newArray = array ($ urlsCaptions);' –
@SahilGulati Großen, die funktionierte. – Gislef
willkommener Freund ... :) –