摘要: 一、PHP字符串相关 1、字符串截取(开始位置、长度) echo substr("Hello world",0,10)."<br>"; //Hello worlecho substr("Hello world",0,-1)."<br>"; //Hello worlecho substr("Hello 阅读全文
posted @ 2018-11-22 10:05 Quentin-wy 阅读(5233) 评论(0) 推荐(0)
摘要: <?php/** * @functional 数据库操作类 */class MySqlHelp{ private $objPdo = null; private $objConnConfig = null; private static $ObjInstance = null; /** * 私有化构 阅读全文
posted @ 2018-11-19 16:34 Quentin-wy 阅读(145) 评论(0) 推荐(0)
摘要: // 创建redis并插入消息public function InsertRedisInfo(){ $redis = new Redis(); $redis->connect('192.168.32.215', 6379); //连接redis $web_info = array(); foreac 阅读全文
posted @ 2018-11-19 16:11 Quentin-wy 阅读(67) 评论(0) 推荐(0)
摘要: 一、查询操作 1.1 查询单表语句select t.*, t.rowid from Table t;1.2 查询多表关联语句select T.id,NVL(T.nesid,0) nesid,T2.name FROM Table T,(select * from Table2 where id>10) 阅读全文
posted @ 2018-11-19 15:57 Quentin-wy 阅读(154) 评论(0) 推荐(0)