PHP interview questions, miscellaneous fish, php interview question _ PHP Tutorial

Source: Internet
Author: User
PHP interview questions. PHP interview questions are all old ones, but they are often encountered during pen-level questions because these questions are messy and the knowledge points of the questions are difficult to classify, I just put a piece of the PHP interview questions.

The questions here are relatively old, but they are often encountered during the pen test, because these questions are relatively messy and the knowledge points of the test are not easy to classify.

/*** Question: minimum code implementation: calculate the maximum number of three * Three-object operator implementation */function getMax ($ a, $ B, $ c) {return ($ a> $ B )? ($ A> $ c )? $ A: $ c): ($ B> $ c )? $ B: $ c);} echo getMax (3,9, 6)

/*** Question: print the time format of the previous day: October 15, 2015 11:09:33 * use the strtotime function * strtotime ("now") * strtotime ("-1 day "); * strtotime ("+ 1 day"); * strtotime ("+ 2 days"); * strtotime ("+ 1 week"); * strtotime ("+ 1 month "); * strtotime ("+ 2 hours"); * strtotime ("next Monday"); * strtotime ("last Monday "); * strtotime ("+ 1 week 3 days 7 hours 5 seconds"); */date_default_timezone_set ("PRC"); echo date ("Y-m-d H: I: s ", strtotime ("-1 day "));

Else the questions here are relatively old, but they are often encountered during the pen test, because these questions are relatively messy, the knowledge points of the test are not easy to classify, just put a piece...

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.