> >

Re: Wan net interview PHP written test

time:15-08-17 forum:PHP tools and code
 
1, print out the time format of the previous day by PHP is 2006-5-10 22:21:21 (2)
answer: echo date ('Y-m-d H:i:s', strtotime ("-1)) Back value (even if not used)
print () can only print a value of a simple type variable (such as int, string)
print_r () can print a value of a complex type variable (such as an array, an object)
echo output one or multiple string

3, a template (1 points) that can make HTML and the partition out of use. Woo, TinyButStrong, Template Lite, Savant, phemplate, XTemplate

5, which tools are used for version control? (1 points)
answer: CVs, SVN, and how to do string flip? (3 points) (4, more write more)
answer:
1, select the most suitable field properties, as far as possible to reduce the length of the definition field, as far as possible to set the field NOT NULL, such as the "province, sex", preferably set to ENUM
2, use the connection (JOIN) to replace the subquery:

a. delete no order clients: DELETE DELETE Fo WHERE CustomerID NOT in (SELECT CustomerID FROM orderinfo)
b. extract all without order customers
WHERE orderinfo.customerid IS NULL
3, using the Federation (UNION) to create a temporary table instead of the manually created temporary table
a.: SELECT name FROM, and transaction processing: to ensure data integrity, such as additions and modifications, both are executed, One failure failed both
mysql_query ("BEGIN");
mysql_query ("INSERT INTO customerinfo (name) VALUES"); A SELECT statement takes out the initial data and updates the new value to the table with UPDATE statements.
LOCK TABLE statements containing the WRITE keyword can ensure that

there will be no other access to the inventory to be inserted, updated, or deleted before the UNLOCK TABLES command is executed. Merid FROM `customerinfo` wheremso-spacerun: yes "
  • 1
  • 2
  • 3
  • 4

prev:The couple rubbed their shoes for 28 yea... next:Ji'nan street snacks are mostly black li...
post comments
Notice



Approved   Ji'nan second hand goods transaction...   Ji'nan neighborhood committee websit...   PhpBB official support station (Engl...   Re: Wan net interview PHP written te...   Re: Wan net interview PHP written te...
rand   Comment on a page without refresh wi...   AJAX uses cookie to transmit values   The solution to the problem of chaot...   PHP AJAX implements no refresh page ...   A summary of the method of generatin...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com