Home >Backend Development >PHP Problem >What is the difference between html and php

What is the difference between html and php

王林
王林Original
2019-10-19 13:42:164734browse

What is the difference between html and php

HTML is a typical static network programming language, while PHP is a dynamic programming language.

Here we can introduce to you how to use PHP to achieve functions that cannot be achieved with HTML.

Simple example:

<?php

echo"<p>Order processed at".date(&#39;H:i,js F Y&#39;)."</p>";

?>

In this code, we use the built-in function date() in the PHP language to tell the customer the date and time when their order was processed. This code will show different results when run at different times.

Many functions in PHP are also implemented in combination with extensible function libraries.

Recommended tutorial: PHP video tutorial

The above is the detailed content of What is the difference between html and 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