PHP learns scattered notes-string splits, fetch functions, and single double quotes. , Fetch double Quotes
1 string splitting--split () function and Preg_split () function
Split-using regular expressions to split strings into arrays--seemingly PHP5.
get the Fetch () method of the result set in PDO
We introduced PHP before the operation of MySQL, but also introduced a few records to get the result set, not familiar with the small partners can go to our special PHP operation MySQL Review, then
For the three APIs used by php to connect to the mysql database, refer to the self-php Manual. This article does not make much sense. it is just for your convenience to access the Internet.
1. MySQL extension of PHP2. mysqli extension of PHP3.
Communication between php and mysql: bitsCN.com
Bugs and bugs, it seems that the last learning process is caused by bugs:
In our production environment of a WebGame, when we accidentally captured the strace packet, we found a large amount of data
PHP supports MySQL in the early stages, and in its 2nd edition it contains an API. Because the combination is too common, the extension is turned on by default. However, PHP 5 released an updated MySQL extension, called MySQL improved, abbreviated
BUG and BUG, it seems that the last learning process is caused by a BUG: in a production environment of our WebGame, when we capture packets with an unintentional strace, we found a large amount of data for communication between php and mysql. In
IntroductionC APIS is included in the mysqlclient library file and released together with the MySQL source code for connecting to the database and performing database queries. There are some examples in the clients directory of the original MySQL
PHP tutorial Introduction: Three MySQL + SQLite + pdo php database classes are supported at the same time: // mysql connect $ db = new SQL (mysql: host = localhost; database = 21andy_blog;, 21andy.com _ user, 21andy.com _ password); // PDO SQLite3
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.