This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('array_blacklist_assoc')){ | |
/** | |
* Returns an array containing all the entries from array1 whose keys are not present in any of the other arrays when using their values as keys. | |
* @param array $array1 The array to compare from | |
* @param array $array2 The array to compare against | |
* @return array $array2,... More arrays to compare against | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node.prototype.addBefore = function(newElement) { | |
this.parentNode.insertBefore(newElement,this); | |
} | |
Node.prototype.addAfter = function (newElement) { | |
this.parentNode.insertBefore(newElement, this.nextSibling); | |
} | |
Node.prototype.setProperties = function(props){ | |
var i,p,c,k,j; | |
for(i in props) { | |
p = props[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<php | |
class helper { | |
//is_array & is associative array | |
public function is_array_asso($a) { | |
return $this->is_asso($a, 1); | |
} | |
// is associative array | |
public function is_asso($a, $strict = FALSE) { |
NewerOlder