I'm not a programmer, but I have to do some work with my site.
Please tell me how to do it
Question in the comment code.
<?php
for ($o = 1; $o < 9 ; $o++) {
$file = '/patch/to/file_'.$o.'.xml';
$doc = new DOMDocument();
$doc->load($file);
$destinations = $doc->getElementsByTagName("model");
foreach ($destinations as $destination) {
foreach($destination->childNodes as $child) {
if ($child->nodeType == XML_CDATA_SECTION_NODE) {
${'czy' . $o}[] = $child->textContent;
}
}
}
}
$merge = array_merge($czy1, $czy2, $czy3, $czy4, $czy5, $czy6, $czy7, $czy8);
// How do this?? but in loop function (from $czy1 to $czy8)?
array_merge(array_merge($czy1, $czy2), $c3)equalsarray_merge($czy1, $czy2, $c3).