Describe introduction of php.
What is php and its Features?
Introduction Of PHP
PHP is one of the back-end languages used as a scripting language. It's used to create a dynamic website and dynamic content.
Most popular site as Facebook, yahoo, etc developed in php language.
Php is a most popular server-site scripting language which is use to create website and web application.it is a client side scripting language. Php language is very easy to use read and write. Php develop by Rasmus Lerdorf in 1993.PHP stands for hypertext preprocessor.
Example :-
<?php
echo "Hello World";
?>
Features Of PHP
Php is most popular and powerful server site scripting language.there are following features of php:-
- Simple
- Interpreted language
- Open source
- Security
- Object oriented
- Case sensitive
- Loosely type language
- Faster
Simple
PHP is a very simple to use read and write.PHP language understandable and user-friendly.user and developer easily identify PHP code.
Interpreted language
PHP is an interpreted language, which means there is no need for compilation. Interpreters run through a program line by line and execute the code. PHP language no need of compiler as like c and c++.
Open source
PHP is open-source, which means it can be downloaded and used freely. There is absolutely no hassle to acquire a license to use it .
Security
PHP has many pre-defined functions for data encryption. Users can also use third-party applications for security. Security and flexibility are often contrasting feature therefore, PHP is designed specifically to be a more secure language for writing CGI (Computer-generated Imagery) programs. Security algorithms such as Sha1 and MD5(Message digest 5) are used to encrypt the strings in PHP. Filter_var and strip_tags functions help to keep the environment more secure and safe for users.
Object oriented
PHP supports object - oriented programming features like data object and class, data encapsulation, inheritance, abstraction, polymorphism, etc. The Object-oriented programming feature was added in PHP version 5. This feature helps in building complex reusable web pages and makes PHP comparable to powerful object-oriented languages like Java and Python.
Case sensitive
PHP is a case-sensitive language. Although functions names are not case-sensitive, other things in PHP are case-sensitive. The following things in PHP are case-sensitive as
Variable names,Constructs ,Keywords,
User-defined functions and class names.
Example : echo keyword don't use Echo.
Loosely type language
PHP supports variable declaration without declaring its data type.
Faster
PHP scrips are usually faster than other scripting languages. Users can load their web pages faster, and they love it. PHP code runs faster than most of programming languages because it runs in its own memory space.
https://akaraklearncoding.blogspot.com/2023/01/introduction-of-html.html
ReplyDelete