Senior PHP engineer interview questions, how many questions can you do? 1. rules for the number of columns are as follows: 1, 1, 2, 3, 5, 8, 13, 21, 34... calculate the number of digits. write related functions and algorithm names.
2. what is the
PHP always uses regular expressions to determine whether a character is a letter or not [non-regular expression judgment]. I do not like this method. I think ASCII code can be used to determine whether a character is a letter.
Finding php has
For more information about multi-level array traversal, see the following figure:
Array ([0] => User Object ([userId] => 365 [name] => aa [cn_name] => Wang A [job] => A region sales engineer [rep_id] => 368 [sub] => Array ()) [1] => User Object
[Php] the use of global is different from the global variables of php and other programming languages. in most programming languages, global variables automatically take effect in functions and classes under them. unless they are overwritten by
Ask to generate letters and numbers with 26 letters {a-Z} and 10 digits {0-9}
If you want to generate 8-character, case sensitive,
Such an arrangement is (26 + 26 + 10) the power of 8 = 218340105584896, which is 218 trillion
However, there cannot be
The final keyword in PHP, as its name implies, is "final, final ".
The final modifier can get the "last method", that is, the method that cannot be overwritten by the quilt class.
class NbaPlayer{ final public function eat($food){
Let's take a look at how to change the following code to call monthly data to call all data or data of a certain year.
// Public function expired () {$ partitions = D ("Goods")-> getGoodsPartitions (); $ this-> assign ("partitions ", $ partitions); $
To install PHP7 in linux, follow these steps:
yum install -y php-mcrypt libmcrypt libmcrypt-devel
Upgrade bison:
cd /var/soft/wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gztar -xvzf bison-2.6.4.tar.gz cd bison-2.6.4./configuremake &&
You may not know the features of some PHP functions. you may know and use these functions in this article, but you may not pay attention to some small points, these points will also be used in development. when you use these PHP functions, you will
The problem of writing data with thousands of sub-places and decimal places to the database is 310
1,000.00
2,000
The data written to the above three databases is, 1, 2. what is the correct method for writing data to the database ~
Display time question date ("Y-m-d H: I: s ")
Show 11:11:11
Change to date ("Y-m-d H: I ")
Show 11:11:00
How to remove seconds
Reply to discussion (solution)
Echo date ("Y-m-d H: I "); //No Seconds. how can this problem be solved?
The PHP code blogger on the iOSPush server was originally a PHPer. when I switched to iOS, I was very excited to see PHP.
Currently, there is a project that requires you to build the server code for iOS push. So I searched the code on the internet.
Example of phpcurl simulating post data submission
Header ("Content-type: text/html; charset = utf8 ");
/*
* Submit a request
* @ Param $ header array set the array ("Host: devzc.com") for the domain name and other headers to be configured ");
* @
What does requireDIR. bootstrap mean by code? Recent studies on the laravel framework,
Require _ DIR _. '/../bootstrap/autoload. php ';
What does this code mean?
The following code is called:
D: \ Web \ Laravel \ public/../bootstrap/autoload.
How should SublimeText3 be configured to be suitable for compiling PHP code? Currently, Sublime Text 3 does not have any code prompts for PHP. HTML is displayed in the lower right corner of the window after opening the PHP document. without PHP
Global variables for PHP learning are slightly different from those for C: In C, global variables automatically take effect in functions unless they are overwritten by local variables. This may cause some problems. some may accidentally change a
ThinkPHP encountered a problem in the code today when assigning values to the volist template.
Assign ('variable name', 'variable value ')The template is complete.
Xxx
However, the variable names are different.
{
How can I use JS to obtain PHP page content? Use http: // localhost: 8081/1. php can access the 'admin' content. I want to use JS to display this content. some people say that it is written using AJAX. Baidu has not solved this problem for several
The differences between include () and require () and include_once () and require_once () in php all have the meaning of the file, but include () and include_once () when an error occurs in the inclusion file, the program continues to execute, while
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