PHP Face question Description:
For example: My name is Fanglor = "ym Eman si Orlgnaf
The answer to the PHP interview question:
Copy Code code as follows:
function Restr ($STR)
{
$str 1 = Explode (', $str);
$str 2 = ';
$temp = ';
Today in the collation of information to find a previously found function, through this function we can achieve the above function.
Main functions:
Copy Code code as follows:
function Grabimage ($url, $filename = "") {
if ($url = =
Objective
Encounter an interview problem, the topic probably means as follows:
Using two ordinary stacks to implement a special stack, so that pop, push, min three functions are all the complexity O (1) operation, the Min function is to obtain the
My environment is appsver bag,
The most commonly appeared on the internet to solve the code in Chinese garbled display is:
First: Pdo::__construct ($dsn, $user, $pass, array
(Pdo::mysql_attr_init_command => "SET NAMES ' UTF8 ';"));
I tried the
Note: Visitfile () has a small amount of modification
Copy Code code as follows:
?
View files for a specified folder
$fileList = Array ();
function Visitfile ($path)
{
Global $fileList;
$path = Str_replace ("\", "/", $path);
Just write a text message verification code module, need to use a specified number of random digits, and then found on the internet to find too terrible such a simple thing to use a good dozens of lines of multiple loops nesting ... There seems to
The static and static properties of PHP are described in the example. Share to everyone for your reference. Specifically as follows:
The way to use self:: *
static method:
* Can be called when the class does not have any objects * It's okay
Sort out 2 people to learn and learn
1, three equals sign and two equal sign difference "= = =" VS "= ="
For example, you can return a function in these situations:
1, the number greater than 0
2, less than 0 of the number
3, equal to 0 of
17. Resource Update (planetresourceupdate.php page)
The important function is explained in the front, this chapter we analyze the important function planetresourceupdate, the main function is to update the resources, the manufacture ship and the
The example in this article describes how PHP obtains the maximum number of days (last day) of a month. Share to everyone for your reference. Specifically as follows:
Gets the maximum number of days (last day) of a month
function
This article illustrates the method of recursive implementation of infinite classification in PHP. Share to everyone for your reference. as follows:
1, ' name ' => ' dev ', ' ParentID ' => 0), array (' ID ' => 2, ' name ' => ' php ', '
Today, want to upload a large number of pictures to the forum, because the picture is a SLR, large volume, wrote a script, batch compression pictures.
getimageheight () getimagewidth ())
{
$image->resizeimage ($maxsize, 0,
There is nothing to do today, want to show the number of online blog statistics. Look for many examples on the Internet, not database storage data is file storage, the code also looks too complex.
After the evening came back, conceived the next,
Cookies are set up primarily during login and exit. To save login and secure exit
1: In the login page settings
Set the value of the cookie
_setcookies ($_rows[' tg_username '), $_rows[' tg_uniqid '],$_clean[' time ']);
_location (null, '
This article is mainly the use of PHP functions to achieve digital and text pagination, the specific implementation of the steps will not wordy, directly on the code
/** * * @param $_sql * @param $_size/function _page ($_sql,$_size) {//Remove
Sometimes we need DLL libraries written in other languages in PHP, such as DLLs written in C #, by using the PHP new COM method to register the DLL library and put the assembly into the global cache before invoking it.
1. Create a C # Class Library
In the micro-credit development of the public account, which is a large number of micro-site development, we need to know that the current browser is a micro-mail built-in browser, then how to judge?
User Agent for micro-trust built-in browsers
Looking for it on the internet, found this classmate's idea is very good, Redtamo, concrete Please steady past look, I make a brief overview, the method used in English alphabet, years, Unix time stamp and microsecond number, random number, the
What is eval ()?
The eval () function calculates the string according to the PHP code.The string must be a valid PHP code and must end with a semicolon.Returns NULL if the return statement is not invoked in the code string. If there is a parse
The Stream_context_create () function is used to create the upper and lower file options for open files, for fopen (), file_get_contents (), and other procedures such as timeout settings, proxy server, request method, header information settings,
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