is_defined function for check constant available or not

function is_defined($constant) {
    $constant = strtoupper($constant);
    if (defined($constant) && constant($constant)) {
        return true;
    }
    return false;
}

Compare Multidimensional Arrays in php

Values in array1 not in array2 (more)
Values in array2 not in array1 (less)
Values in array1 and in array2 but different (diff)

function compare_multi_Arrays($array1, $array2){
    $result = array("more"=>array(),"less"=>array(),"diff"=>array());
    foreach($array1 as $k => $v) {
      if(is_array($v) && isset($array2[$k]) && is_array($array2[$k])){
        $sub_result = compare_multi_Arrays($v, $array2[$k]);
        //merge results
        foreach(array_keys($sub_result) as $key){
          if(!empty($sub_result[$key])){
            $result[$key] = array_merge_recursive($result[$key],array($k => $sub_result[$key]));
          }
        }
      }else{
        if(isset($array2[$k])){
          if($v !== $array2[$k]){
            $result["diff"][$k] = array("from"=>$v,"to"=>$array2[$k]);
          }
        }else{
          $result["more"][$k] = $v;
        }
      }
    }
    foreach($array2 as $k => $v) {
        if(!isset($array1[$k])){
            $result["less"][$k] = $v;
        }
    }
    return $result;
}

Switch PHP Version With htaccess

To switch to PHP 7.4
AddHandler application/x-httpd-php74 .php //.php5 .php4 .php3

To switch to PHP 7.3
AddHandler application/x-httpd-php73 .php //.php5 .php4 .php3

To switch to PHP 7.2
AddHandler application/x-httpd-php72 .php //.php5 .php4 .php3

To switch to PHP 7.1
AddHandler application/x-httpd-php71 .php //.php5 .php4 .php3

To switch to PHP 7.0
AddHandler application/x-httpd-php70 .php //.php5 .php4 .php3

To switch to PHP 5.6
AddHandler application/x-httpd-php56 .php //.php5 .php4 .php3

Multi-dimensional Array Search with javascript Regular Expresion

//json_encode($data);
window.datanew = $.parseJSON(data);
var j = 0;
var result =  new Array();
var v_regexp = new RegExp(txtsearch,"gi");
for ( var i = 0; i < PartsData.length; i++ ) {
    if ( v_regexp.test(PartsData[i]['ArrayKey']) ) {
        result[j] = PartsData[i];
        j++;
    }
}

Internet Download Manager IDM 6.27 (With Crack)


IDM 6.27 Build 3 Final With Crack
 Full version of internet download manager 

       Winrar Password : 12345

       1. Firstly, download IDM latest version from the below link.
       2. Extract the file with Winrar tool. Now open the folder.
       3. Run "idman625build25.exe" file, and complete install.
       4. After installation, don’t run IDM. If it is running just, close it.
       5. Open the patch folder, run patch, and click on register button.
       6. Now put the first and last name on the patch.
       7. Then click on register button.
       8. See "Register Successfully Done" message.
       9. All Done. Enjoy!!!

NB: Some antivirus detect 'Crack.exe' and 'IDM Crack Installer.exe' as virus, trust me they are not.