PHP Interview questions Exam 02
3, the ability to make HTML and PHP separated from the use of the template
The answer is: PHP code
Controller$view = new View (), Echo $view->display (' out.php ', Array (' name ' = ' Stefan ', ' blog ' = '/') '/
PHP Multilevel Navigation display
Write once, think once ... Do it again ...? Here we go. Come directly to copy later.First paragraph of codeGets the category to display.The first level directory is placed in Categories[0],The secondary catalogue
About the configuration of PHPUnit and selenium coverage (original)
The PHPUnit and selenium coverage are configured as follows:Add the following code configuration to the Phpunit.xml.
? ?? ???
Also need to join
? ?? ???
How to configure PHP plugin
http://apps.hi.baidu.com/share/detail/36620098
Eclipse PHP Plug-in (phpeclipse) installation and configuration
Keyword: php
In this chapter we introduce the installation and configuration of an eclipse PHP plugin
Problems with compiling and installing PHP under Mac
Because php5.4. Use the Mysqlnd so. When joining MySQL and mysqli, use Mysqlnd
There is also the possibility of encountering Libiconv compilation errors. Probably because the Mac itself comes
Custom functions for PHP learning notes
Define function Format: Functions functionname () {
???? function contents
}
?? function MyFunction () {
?????? Echo ' My first PHP function ';
?? }
?>
PHP functions can have parameters and return
Application of Trie
Should CSDN request, received CSDN Moon cake should be divergent sub-paste
The former post has been sent due to go round. Therefore, the knot paste, than continue to post scattered points
Class Ttrie {Protected $buffer = Array (
Windows installs PHP Codesniffer and uses it in Phpstorm
Windows install PHP Codesniffer
1. Download Php_codesniffer 1.3.6:http://download.pear.php.net/package/php_codesniffer-1.3.6.tgz
2. Unzip to directory: d:\dev\tools\PHP_CodeSniffer-1.3.6
3.
PHP Rawurlencode and UrlEncode
Problem: 2 functions are for string escaping so that they are suitable for file names. Which one should I use? Which is more standard?
Conclusion:Rawurlencode Compliance is the 94 international standard memo RFC 1738,
Problems encountered in PHPECLIPSE+XAMPP development environment
Recently in a PHP Web project, the development environment is PHPECLIPSE+XAMPP.
For PHPEclipse, after downloading the PHPEclipse plugin, copy the contents of the corresponding features
PHP string Single byte operation ――substr really slow.
When we want to manipulate a single byte in a string, what is the way we do it? Always thought that the substr function would not be very slow. But it was tested today, and the result is not.
Type constraints for PHP5
function parameters in PHP have type constraints. That is, the type of the parameter is explicitly required. such as the following code:
?
?
var; } /** * Another test function * The first parameter must
Definition, initialization, and display of array elements for PHP arrays
From the beginning of the ASP to PHP, feel that one of the powerful PHP is a rich built-in functions, such as the previous study of the PHP date and time function, read and
phpMyAdmin to resolve additional features of linked tables not yet activated alert
phpMyAdmin has been the " link table add-on feature has not been activated " issue, after landing phpMyAdmin, will be displayed at the bottom of the "link table add-
PHP two array intersection difference set
Array_intersect--Explanation of the intersection of computed arrays
Array Array_intersect (array array1, array array2 [, array ...])
Array_intersect () returns an array that contains all the values in
PHP memory_limit Problem Solving
???? Memory_limit Although the memory size can be adjusted, but if a PHP script has a larger DB result set or arrays, objects, or have a large number of result sets, if these resource-occupying objects are not
PHP Session Use
??? Because the previous study of Java, and now use PHP to do projects feel particularly unaccustomed, especially PHP session mechanism, feel a lot behind Java.
?
??? 1. PHP uses session, which is identified by passing the
PHP generate thumbnails, add watermark class
This is a simple GD library operation
$dinfo [' height '] | | $winfo [' width '] > $dinfo [' width ']) {return false;} Two pictures, read on the canvas! But the picture may be PNG, possibly jpeg,
A PHP collection class that includes downloading remote images and replacing the original
It's fine today. Perfect a PHP collection class, this for everyone to share under.
This example, can, automatically download remote pictures, and replace
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