$xml = simplexml_load_fi...
阅读:30
评论:0
class jsonToXml { public static function convert($data, DOMDocument $dom = null, DOMElement $xml = null) { if(!$dom) { $dom = new DOMDocument('1.0', 'UTF-8'); $dom->formatOutput = true; } if(!$xml) { $xml = $dom->createElement('xml'); $xml->setAttribute('root', 'http...
阅读:909
评论:1
阅读:451
评论:0
function print_r(array, return_val) { var output = '', pad_char = ' ', pad_val = 4, d = this.window.document, getFuncName = function (fn) { var name = (/\W*function\s+([\w\$]+)\s*\(/).exec(fn); if (!name) { return '(Anonymous)'; } return name[1]; }, repeat_char = function (len, pad_char) { var str = ''; for (var i = 0; i < len; i++)...
阅读:132
评论:0
/*MSSql的操作类*/ class MSSql { var $link; var $querynum = 0; /*连接MSSql数据库,参数:dbsn->数据库服务器地址,dbun->登陆用户名,dbpw->登陆密码,dbname->数据库名字*/ function Connect($dbsn, $dbun, $dbpw, $dbname) { if($this->link = @mssql_connect($dbsn, $dbun, $dbpw, true)) { $query = $this->Query('SET TEXTSIZE 2147483647'); if (@mssql_select_db($dbname, $this->link)...
阅读:249
评论:0