Home  >  Article  >  Backend Development  >  What is the role of PHP

What is the role of PHP

巴扎黑
巴扎黑Original
2017-07-20 17:20:355391browse

PHP is a server-side scripting language embedded in HTML. What distinguishes PHP from others like client-side Javascript is that its code is executed on the server side. What can PHP do?
At the lowest level, PHP can do anything that other CGI programs can do, such as collecting form data and generating dynamic pages. content, or sending and receiving cookies. Perhaps the most powerful and meaningful feature of PHP is its support for a wide range of databases. Writing a database-enabled Web page is incredibly simple.
The following databases are currently supported:
Adabas D InterBase Solid
dBase mSQL Sybase
Empress MySQL Velocis
FilePro Oracle Unix dbm
Informix PostgreSQL
PHP also supports "talking" with other services through protocols, like IMAP, SNMP, NNTP , POP3, and even HTTP. You can also open obscure network interfaces and interact with other protocols.

Mastering PHP is using your computer to make rules. Framework tp3.2/5.2

In structured programming, the program is designed around the task to be solved.

In object-oriented programming, the program is designed around the objects in the problem domain.

Object-oriented way of identifying things:
●Analogy---->Classification
Class is the abstraction of things Things are instances of classes (instantiation->new)


A class is a collection of objects with the same properties and behaviors

In software systems, we use classes to simulate entities in real life (there is a limit to simulation)

Classes do not exist in a real sense, but are conceptually defined by people for a long time

Strong language: mandatory (mandatory definition of data types)
Weak language: weakened (No mandatory definition required)
Custom class:

class Person [identifier] {
//Attribute
public $name;
public $birth;
/ /behavior
function useTools( ){

}
}

The above is the detailed content of What is the role of PHP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn