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 | |
function is_assoc_array($a) { | |
return (is_array($a) | |
&& (array_keys($a) !== range(0, count($a) - 1))); | |
} | |
function is_plain_array($a) { | |
return is_array($a) && !is_assoc_array($a); | |
} |
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
/////////////////////////////////////////////////////////////////////////////// | |
// | |
// browser_x_loader(tag_name, element_type, callbak[, end_callback]) | |
// | |
// Load files in the browser | |
// | |
// Usage: | |
// | |
// <script type="text/x-toni-template" src="tmpl/default.tmpl"></script> | |
// <script type="text/x-toni-template" src="tmpl/login.tmpl"></script> |
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
//----------------------------------------------------------------------------- | |
// | |
// print_r(expression[, _return = false ]) | |
// | |
// PHP's print_r() implemented in javascript | |
// | |
// Usage: | |
// alert(print_r([111, {a: 33, b: 44}], true)) | |
// | |
// if _return is true will return string |
NewerOlder