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 | |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
// created by bto | |
// via http://blog.bz2.jp/archives/2008/05/1php.html | |
// http://blog.bz2.jp/archives/2008/05/singleexecution.html | |
class singleExecution | |
{ | |
var $key = null; | |
var $options = array( |
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 | |
// $Id$ | |
if (!function_exists('array_val')) { | |
function array_val(&$data, $key, $default = null) { | |
if (!is_array($data)) { | |
return $default; | |
} | |
return isset($data[$key])? $data[$key]: $default; | |
} |
NewerOlder