Exectly this is how php works and how doe's it is different from other languages
Well php is scripting language that is used to in Web development and web applications when you want to know about what is php exectly :
What is php?
- PHP is a server side scripting language.
- PHP is an interpreted language, i.e. there is no need for compilation.
- PHP is an object-oriented language.
- PHP is an open-source scripting language.
PHP is a server side scripting language:
As i told you that PHP is server side scripting language that means any changes you want in your website that can be easily update because you on server side you just need to write some of line of code.
PHP is interpreted language:
PHP is a interpreted language because there is no need to compile it before it execute. That means there is many other languages that require to compile the code before run(like C, JAVA, C++, etc.).
This is the Key-point about the php is you just need to make code and run on the browser.
PHP is a Object Oriented Language:
As PHP is most popular language that's why the best thing about that PHP is an object oriented language that means you can do every thing what you want to do just like you do in some Object oriented languages like JAVA, C++, C#.
PHP is Open-Source Scripting Language:
Under the Licence of GNU PHP is also Under the GNU licence that means you don't need to pay a penny to use the php tools and tricks. This is free to all users to use php.