Year-End Discount: 10% OFF 1-year and 20% OFF 2-year subscriptions!

Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

what
php

What is PHP?

Educative Answers Team

Tired of LeetCode? 😩

Learn the 24 patterns to solve any coding interview question without getting lost in a maze of LeetCode-style practice problems. Practice your skills in a hands-on, setup-free coding environment. 💪

PHP (previously referred to as Personal Home Page) is currently known as the Hypertext Preprocessor. It is a server-side, scripting language that is used for developing static and dynamic websites. PHP can also develop web applications.

Syntax

<?php
echo "Hi, I'm a PHP script!";
?>

Advantages of using PHP

  • PHP uses tags that make it similar to that of HTML and client-side scripts like​ JavaScript.

  • PHP requires no prior knowledge of HTML.

  • PHP is an open-source language and is free of cost.

  • PHP has a large community document.

  • PHP is regularly updated according to the recent technology trends.

  • Since PHP is a server-side scripting language, it is executed on the server; hence, ​client machines do not need to have PHP installed.

How PHP works

The following illustration explains how a PHP cycle works:

svg viewer

RELATED TAGS

what
php
Copyright ©2022 Educative, Inc. All rights reserved

Tired of LeetCode? 😩

Learn the 24 patterns to solve any coding interview question without getting lost in a maze of LeetCode-style practice problems. Practice your skills in a hands-on, setup-free coding environment. 💪

Keep Exploring
Related Courses