1
私はexplode()
関数によって生成されている2つの配列を持っています。長さの異なる2つの配列を結合多次元配列に結合するにはどうすればよいですか?
この配列:
Array (
[0] => uploads/str/evidence/Invoice_INVCZ769885.pdf
[1] => uploads/str/evidence/keputusantahun1.pdf
[2] => uploads/str/evidence/permohonan.pdf
[3] => uploads/str/evidence/Invoice_INVCZ7698851.pdf
[4] => uploads/str/evidence/keputusantahun11.pdf
[5] => uploads/str/evidence/permohonan1.pdf
[6] => uploads/str/evidence/Invoice_INVCZ7698852.pdf
[7] => uploads/str/evidence/Invoice_INVCZ7698853.pdf
[8] => uploads/str/evidence/keputusantahun12.pdf
)
と、この配列:
Array (
[0] => Invoice_INVCZ769885.pdf
[1] => Invoice_INVCZ769885.pdf
[2] => Invoice_INVCZ769885.pdf
[3] => Invoice_INVCZ769885.pdf
[4] => Invoice_INVCZ769885.pdf
[5] => Invoice_INVCZ769885.pdf
[6] => Invoice_INVCZ769885.pdf
[7] => Invoice_INVCZ769885.pdf
)
私の質問はどのように私はこれにこれらの配列をマージすることができます。
Array (
[imgs] =>
Array(
[img] => uploads/str/evidence/Invoice_INVCZ769885.pdf,
[file] => Invoice_INVCZ769885.pdf
),
[imgs] =>
Array(
[img] => uploads/str/evidence/Invoice_INVCZ769885.pdf,
[file] => Invoice_INVCZ769885.pdf
),
)
こんにちはmickmackusa、魔法のように動作します。..おかげでたくさんのあなたの助けには、本当に感謝それ。 –