摘要:
/** * 使用$replace替换字符串的中间部分 */ function replaceCenterWithChar($str, $replace = "*", $leftLen = 2, $rightLen = 2, $replaceLen = 3) { $length = mb_strlen 阅读全文
摘要:
$year = date("Y"); $month = date("m"); $day = date("d"); $start = mktime(0,0,0,$month,$day,$year);//当天开始时间戳 $end= mktime(23,59,59,$month,$day,$year);/ 阅读全文
摘要:
<?php class test{ function abc(){ return '123'; } } header("Content-type: text/html; charset=utf-8"); $servername = 'localhost'; $username = '*****'; 阅读全文
摘要:
方法一: 随便打开一个页面,在显示行号(最左边)这里鼠标右击,勾选"Use Soft Wraps"。 方法二: 选择"File-->>Settings-->>Editor-->>General",进入页面后,勾选"Use soft wraps in editor"。 phpstorm 2019自动换 阅读全文
摘要:
$where['user_id'] = $user_id;$where['buy_id'] = $user_id;$where['_logic'] = 'or';$map['_complex'] = $where;$map['trade_type'] ='1';$map['status'] = ar 阅读全文
摘要:
<div class="fk_ban fk_ban1" style="width: 25%;margin: 10px 0;line-height:auto">买多少:</div> <div style="width: 70%;float: left;margin: 10px 0;word-break 阅读全文
摘要:
文字自适应在html页面加入 <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'> <meta name='apple-mobile-web 阅读全文
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <form acti 阅读全文
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><a href 阅读全文