RUN apt-get update \
&& apt-get install -y libonig-dev libpq-dev \
...
$cat = "is_cat";
array_filter($arrAction,function($a) use($cat){
return $a["attribute:cat"] == $cat;
});
$array1 = [
[
"link"=> "http://site.com/34",
"movie_file" => "set33.zip"
], [
"link"=> "http://site.com/12",
"movie_file" => "set33.zip"
]
];
$array2 = [
[
"link"=> "http://site.com/test",
"movie_file" => "set33.zip"
], [
"link"=> "http://site.com/12",
"movie_file" => "set33.zip"
]
];
function keyCompareFunc($key1, $key2)
{
$val1 = $key1['link'];
$val2 = $key2['link'];
return strcasecmp($val1,$val2);
}
$list= array_udiff($array1,$array2,'keyCompareFunc');
var_dump($list);
$result = sprintf("%'.06d", 000000+000001);