<?php
$pageids = [
['id' => 1, 'linklabel' => 'Home', 'url' => 'home'],
['id' => 2, 'linklabel' => 'Graphic Design', 'url' => 'graphicdesign'],
['id' => 3, 'linklabel' => 'Other Design', 'url' => 'otherdesign'],
['id' => 6, 'linklabel' => 'Logo Design', 'url' => 'logodesign'],
['id' => 15, 'linklabel' => 'Content Writing', 'url' => 'contentwriting'],
];
$parentpage = [
['id' => 2, 'linklabel' => 'Graphic Design', 'url' => 'graphicdesign'],
['url' => 'otherdesign', 'id' => 3, 'linklabel' => 'Other Design'],
];
var_export(
array_udiff($pageids, $parentpage, fn($a, $b) => $a <=> $b)
);
preferences:
25.16 ms | 405 KiB | 5 Q