- Explain PHP
Stands for "Hypertext Preprocessor." (It is a recursive acronym, if you can understand what that means.) PHP is an HTML-embedded Web scripting language. This means PHP code can be inserted into the HTML of a Web page. When a PHP page is accessed, the PHP code is read or "parsed" by the server the page resides on
- Explain WAMP
Stands for "Windows, Apache, MySQL, and PHP." WAMP is a variation of LAMP for Windows systems and is often installed as asoftware bundle (Apache, MySQL, and PHP). It is often used for web development and internal testing, but may also be used to serve live websites.
- Explain the difference between procedural and object-oriented programming in PHP. Give example code.
In a way, procedural programming could also be called linear programming. One thing happens and then the next. Code is executed from the top of the file to the bottom.
OOP isn't as linear as procedural programming. Code is often broken up and distributed across multiple files, each one with a single purpose. OOP is also more abstract than procedural programming because it looks for patterns and reusability. The same code can be loaded and executed many times to accomplish a task without having to retype it.
- Identify the rules in naming variables in PHP
A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume).
Rules for PHP variables:
- A variable starts with the $ sign, followed by the name of the variable
- A variable name must start with a letter or the underscore character
- A variable name cannot start with a number
- A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
- Variable names are case-sensitive ($age and $AGE are two different variables)
Notes :
Open sql notifier
Open sql notifier
Reference:
No comments:
Post a Comment