array preg_split ( string $pattern , string $subject [, int $limit = -1 [, int $flags = 0 ]] )
git branch -r
-r, --remotes
List or delete (if used with -d) the remote-tracking branches.
-a, --all
List both remote-tracking branches and local branches.
while(!$rows = parent::findAll()){
throw new \Exception('Нет категорий');
}
return $rows;
if (($rows = parent::findAll()) === false);
throw new \Exception('Нет категорий');
}
return $rows;
$arr1 = array( "45ebdbaa-380b-483b-80a2-73d7c53088e2","97baa061-4208-4aeb-8136-eb76c0932a3d", "111");
$arr2 = array( "45ebdbaa-380b-483b-80a2-73d7c53088e2", "222");
$result = array_merge(array_diff($arr1, $arr2), array_diff($arr2, $arr1));
var_dump($result);
/*
array(3) {
[0] =>
string(36) "97baa061-4208-4aeb-8136-eb76c0932a3d"
[1] =>
string(3) "111"
[2] =>
string(3) "222"
}
*/