<?php
$arraya = array(
'http://www.simplyathome.nl/partners/' => array(
'links' => array(
'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf',
'https://www.kooistra-detectors.eu/',
),
),
'http://www.helex.nl/links/' => array(
'links' => array(
'https://www.kooistra-detectors.eu/',
'http://www.debruidslakei.nl/bruidsmode-alkmaar/',
'https://kubes.nl/',
),
),
);
$arrayb = array(
'http://www.simplyathome.nl/partners/' => array(
'links' => array(
'https://www.google.nl/',
'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf',
),
),
'http://www.helex.nl/links/' => array(
'links' => array(
'https://facebook.nl/',
'https://www.kooistra-detectors.eu/',
'http://www.debruidslakei.nl/bruidsmode-alkmaar/',
//'https://kubes.nl/',
'http://example.com/',
),
),
);
$final = array();
foreach ($arrayb as $keyb => $valueb) {
if (in_array($valueb, $arraya)) {
unset($arrayb[$keyb][$valueb]);
//$final[$keya][$valuea];
}
}
//$arrayb = array_values($arrayb);
print_r($arrayb);
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.5 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- Array
(
[http://www.simplyathome.nl/partners/] => Array
(
[links] => Array
(
[0] => https://www.google.nl/
[1] => http://www.eerenstein.nl/assortiment/goedkope-sigma-verf
)
)
[http://www.helex.nl/links/] => Array
(
[links] => Array
(
[0] => https://facebook.nl/
[1] => https://www.kooistra-detectors.eu/
[2] => http://www.debruidslakei.nl/bruidsmode-alkmaar/
[3] => http://example.com/
)
)
)
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[http://www.simplyathome.nl/partners/] => Array
(
[links] => Array
(
[0] => https://www.google.nl/
[1] => http://www.eerenstein.nl/assortiment/goedkope-sigma-verf
)
)
[http://www.helex.nl/links/] => Array
(
[links] => Array
(
[0] => https://facebook.nl/
[1] => https://www.kooistra-detectors.eu/
[2] => http://www.debruidslakei.nl/bruidsmode-alkmaar/
[3] => http://example.com/
)
)
)
preferences:
193.98 ms | 403 KiB | 173 Q