Difference between revisions of "PHP l2"
From Ilianko
Line 4: | Line 4: | ||
require(); | require(); | ||
− | < | + | <code><pre> |
+ | |||
+ | <!DOCTYPE html> | ||
+ | <html> | ||
+ | <header> | ||
+ | <title>Include</title> | ||
+ | <meta charset="UTF-8"> | ||
+ | </header> | ||
+ | <body> | ||
+ | <div id=menu></div> | ||
+ | <div id=content></div> | ||
+ | <div id="ads"></div> | ||
+ | <div id=footer> | ||
+ | web development by Tugab | ||
+ | </div> | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | </pre></code> | ||
Revision as of 15:00, 8 November 2015
Файлове include(); require();
<!DOCTYPE html>
<html>
<header>
<title>Include</title>
<meta charset="UTF-8">
</header>
<body>
<div id=menu></div>
<div id=content></div>
<div id="ads"></div>
<div id=footer>
web development by Tugab
</div>
</body>
</html>
include_once() require_once()
Функции PHP 3
Класове
клас/обект/инстанция/абстракция/капсулиране/наследяване/метод/свойство/видимост