In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "What are the problems that PHP programmers must be clear about", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "What are the problems that PHP programmers must know"!
Are you looking for a PHP development job and are looking for answers to some PHP interview questions? This article shares some of the 11 most frequently asked PHP interview questions, as well as the corresponding general answers, each company has its own interview criteria, interviews and questions are completely dependent on your role in the work, and of course, your programming skills are closely related.
1. Question: Please tell me in the simplest language what PHP is?
PHP: Hypertext Preprocessor is a server scripting language used to develop dynamic websites.
2. Question: What is MVC?
MVC consists of Model, View and Controller, PHP MVC can manage PHP code in 3 different layers more efficiently.
Model: Data information access layer.
View: The view layer is responsible for presenting the application's data in a specific way on the interface.
Controller: Usually controllers are responsible for reading data from views, controlling user input, and sending data to models.
3. Question: How many ways can CSS be referenced on a page?
Answer: There are 3 ways to use CSS on a page:
Reference external CSS files
Internally Defined Style Style
inline styles
4. Question: Does PHP support multiple inheritance?
Answer: No. PHP classes can inherit only one parent class, identified by the keyword "extended."
5. Question: What is the difference between echo and print in PHP?
The two look similar because they both print values on the screen. But the essential difference between echo and print is that echo is used to output strings, and multiple values can be separated by commas. Only basic types are supported, print can print not only string values, but also return values of functions.
6. Question: What is the difference between GET and POST?
Answer: We fill in the form information on the web page can pass the data to the server through these two methods. When we use GET method, all the information will appear in the URL address, and GET method can only pass up to 1024 characters, so if the transmission volume is small or security is not so important, GET method can be used. Speaking of POST methods, up to 2MB of data can be transferred and can be adjusted as needed.
7. Question: What is PHP's way to get the image size?
Answer: getimagesize () Gets the size of the picture
Imagesx () Gets the width of the image
Imagesy () Gets the height of the image
8. Question: What is PEAR in PHP?
PEAR is also known as PHP Extension and Application Repository, which is a code repository for PHP extensions and applications.
9. Question: How do I upload videos in PHP and MySQL?
Answer: We can store the video address in the database without having to store the actual video data in the database. Video data can be stored in a specified folder on the server. The default upload size is 2MB, but we can also modify the max_file size option in php.ini file to change it.
10. Question: What are the types of errors in PHP?
Answer: There are roughly three types of errors encountered in PHP.
Hint: This is all very normal information, not major errors, some of which are not even displayed to users. For example, access to variables that do not exist.
Warning: This is a bit of a serious error that will show warning messages to the user, but will not affect the output of the code, such as containing files that do not exist.
Error: This is a really serious error, like accessing PHP classes that don't exist.
11. Question: How do I define constants in PHP?
Answer: Define () is used in PHP to define constants.
define ("Newconstant", 30);
Question: How do I submit a form without using the submit button?
If we don't want to submit the form with the submit button, we can submit it with a hyperlink. We can write code like this:
Submit Me
At this point, I believe that everyone has a deeper understanding of "what are the problems PHP programmers must know", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.