Add CompareArrays helper function to help with nested arrays
This commit is contained in:
parent
5752d9f393
commit
d8183ce9fe
|
@ -288,6 +288,12 @@ trait helperfunctions {
|
|||
return $sccp_conf_init;
|
||||
}
|
||||
|
||||
public function compareArrays(array $a, array $b){
|
||||
if (array_diff_assoc($a, $b)===[]) {
|
||||
return 0;
|
||||
}
|
||||
return ($a>$b)?1:-1;
|
||||
}
|
||||
|
||||
public function checkTftpMapping(){
|
||||
exec('in.tftpd -V', $tftpInfo);
|
||||
|
|
Loading…
Reference in a new issue