PHP
文章平均质量分 84
howlowl
这个作者很懒,什么都没留下…
展开
-
编码问题python3 mysql
(一)https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431664106267f12e9bef7ee14cf6a8776a479bdec9b9000Unicode标准也在不断发展,但最常用的是用两个字节表示一个字符(如果要用到非常偏僻的字符,就需要4个字节)。现转载 2018-01-27 15:40:59 · 552 阅读 · 0 评论 -
Global variables in PHP
global variable is variable declared outside any function, not local to any function.<?php $x = 2; function test1(){ global $x; echo $x; } function test2(){ global $x; //can also be re原创 2018-01-30 02:51:45 · 125 阅读 · 0 评论 -
PDO
mysql:<?php //1. Create a database connection $connection = mysql_connect("localhost", "root", "****"); if(!$connection){ die("Database connection failed: " . mysql_error()); } //2. Selec转载 2018-01-25 21:12:19 · 153 阅读 · 0 评论 -
Where to put DOCTYPE html in php files?
As others have said,!DOCTYPEis necessary in php scripts that are outputting HTML. If you were creating an image or executing a bash file or something, the story would be different.As for where it ...转载 2019-03-10 05:31:41 · 101 阅读 · 0 评论