Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は2つの配列を持っています。PHPで
dir(0=>1,1=>2,2=>3,3=>5,4=>7,5=>8); list(0=>1,1=>12,2=>18,3=>20,4=>7,5=>8);
結果の配列は
result(0=>2,1=>3,2=>5);
結果の配列には、list() 配列に存在しない値が含まれている必要があります
$diff=array_diff($dir,$lists);