PHP面试题之小杂鱼,php面试题
PHP面试题之小杂鱼,php面试题
这里的题目都是比较老的,但是做笔试题时经常碰到,因为这些题目比较凌乱,考的知识点不好分类,就放一块了
<span>/*</span><span>* * 题目:最少代码实现求3个数的最大值 * 三目运算符实现 </span><span>*/</span> <span>function</span> getMax(<span>$a</span>,<span>$b</span>,<span>$c</span><span>){ </span><span>return</span> (<span>$a</span> > <span>$b</span>) ? ( (<span>$a</span> > <span>$c</span>) ? <span>$a</span> : <span>$c</span> ) : ( (<span>$b</span> > <span>$c</span>) ? <span>$b</span> : <span>$c</span><span> ); } </span><span>echo</span> getMax(3,9,6)
<span>/*</span><span>* * 题目:打印前一天的时间 格式:2015年10月15日 11:09:33 * strtotime函数使用 * 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"); </span><span>*/</span><span> date_default_timezone_set(</span>"PRC"<span>); </span><span>echo</span> <span>date</span>("Y-m-d H:i:s",<span>strtotime</span>("-1 day"));

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

As a well-known programming learning website, php Chinese website has compiled some React interview questions for you to help front-end developers prepare and clear React interview obstacles.

This article summarizes some selected Web front-end interview questions worth collecting (with answers). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

As a programming language that has become very popular in recent years, Go language has become a hot spot for interviews in many companies and enterprises. For beginners of the Go language, how to answer relevant questions during the interview process is a question worth exploring. Here are five common Go language interview questions and answers for beginners’ reference. Please introduce how the garbage collection mechanism of Go language works? The garbage collection mechanism of the Go language is based on the mark-sweep algorithm and the three-color marking algorithm. When the memory space in the Go program is not enough, the Go garbage collector

This article will share with you 50 Angular interview questions that you must master. It will analyze these 50 interview questions from three parts: beginner, intermediate and advanced, and help you understand them thoroughly!

High concurrency is an experience that almost every programmer wants to have. The reason is simple: as traffic increases, various technical problems will be encountered, such as interface response timeout, increased CPU load, frequent GC, deadlock, large data storage, etc. These problems can promote our Continuous improvement in technical depth.

This article summarizes for you some selected vue high-frequency interview questions in 2023 (with answers) worth collecting. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

The main purpose of publishing articles is to consolidate my knowledge and become more proficient. It is all based on my own understanding and the information I searched online. If there is something wrong, I hope you can give me some advice. Below are some common interview questions that I have summarized. I will continue to update them in order to supervise myself.

10 questions every day. After 100 days, you will have mastered all the high-frequency knowledge points of front-end interviews. Come on! ! ! , while reading the article, I hope you don’t look at the answer directly, but first think about whether you know it, and if so, what is your answer? Think about it and then compare it with the answer. Would it be better? Of course, if you have a better answer than mine, please leave a message in the comment area and discuss the beauty of technology together.
