PHP interview questions ~~ I did some php questions on the Internet, but I don't know how to do it now.
If you have any questions, please add them and correct them.
1. use PHP to print the time format of the previous day in the format of 22:21
A php Bug? Test Environment: Windows Server2003 + PHP5.3.5 _ TS + Apache2.2.19
Create 1.php and put it in the localhot root directory. the file content is as follows:
Set_error_handler (function (){Echo 'error occurred
Php parameter annotation introduction: This is a detailed page for php parameter annotation. it introduces php, related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: // biancheng.dnbc?info/
The most common php Reflection functions include get_class get_class_methods.
1. get_class? Class name of the returned object
String get_class ([object $ obj])
Returns the name of the class to which the object (obj) belongs. If obj is not an
Php 11th days 1. if you do not want to use a variable in a function
You can use unset (variable name
) To completely delete the variable.
$ A = 12;
Function abc ($ ){
Unset ($ );
$ A = 50;
}
Abc ($ );
Echo '$ a ='. $ a; // the result is $ a = 12
2.
When j is input for a php ajax instance, the ajax effect is triggered. data with j in the corresponding name is retrieved from the background and displayed in suggestions.
The code is implemented as follows:
Ajax requires three files: one is an
Php Cache processing 1. flush
Refresh the content cached by the program and output it to the browser.
2. open the output buffer with ob_start.
When the buffer zone is activated, all non-file header information from the PHP program is not
What is prefix and reference of php variables?
Referencing in PHP means accessing the same variable content with different names. This is not like the pointers of C. They are symbol table aliases. Note that in PHP, the variable name and variable
Top 10 of PHP learning: foreach
PHP 4 (not PHP 3) includes the foreach structure, which is similar to Perl and other languages. This is just a simple way to traverse arrays. Foreach can only be used for arrays. an error occurs when you try to use it
{Php5 Exception} Exception: Exception handling is used to change the normal process of the script when a specified error (Exception) occurs.
When an exception is triggered, it usually occurs:The current code status is saved. code execution is
Learning php 2: PHP markup style 1. XML-style PHP markup
1
XML style tags are the most commonly used tags in PHP programming. they can be used in XML and XTML.
We recommend that new users use this
PHP3: This example is briefly introduced in the previous article about PHP marking on the Login interface.
OK. Let's start with the Login page on the first page.
Let's look at the interface.
How is it? do you really want to guide how it is
VimXDebug debug PHPphp remote debugging xdebug configuration
Xdebug installation
Address: http://xiaobin.net/201007/using-vim-and-xdebug-to-debug-php-code/
In principle, this debugging method relies mainly on the Vim plug-in "remote PHP
PHP18: data_valid_fns.php read regular expressions this chapter introduces regular expressions.
Let's take a look at the code of data_valid_fns.php.
1
23 function filled_out ($ form_vars)4 {5 // test that each variable has a value6 foreach ($
InstallIIS7.5PHP & FastCGIforPHPonWindows7 http://www.landpro.com.au/Windows_7_Install_IIS_7_&_PHP_&_FastCGI.php
Install IIS 7.5 PHP & FastCGI for PHP on Windows 7
Why install IIS?
Obviously you want to design web sites on your local
PHPUTF-8 garbled problem with PHP + MySql obtained data with UTF-8 encoding is garbled.
It turns out to be
1 // solve the garbled problem: 2/* PHP sets character_set_client to tell Mysql what encoding method PHP stores in the database. 3. PHP
Introduction to php post json data acquisition: this is a detailed page for php to obtain post json data. it introduces the knowledge, skills, and experience related to php, php, POST, and JSON php to obtain post json data, and some php source code.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service