PHP Basics.pdf

PHP quiz.pdf
Preview of PHP Basics
🔗 Source: magicmonktutorials.com
📊 Size: 179 KB
📄 Pages: 2 pages
⬇️ Downloads: 1,071

Summary

PHP files may contain HTML, CSS, and JavaScript.
1. PHP files are executed server-side.
2. The end user cannot see the PHP source code.
3. You cannot put PHP code in .html files.
4. You can put HTML, CSS, JavaScript code in .php files.
5. MySQL is an open source database server.
6. Each line in PHP must end with a semicolon.
7. You don't have to declare variables in PHP.
8.
1. PHP stands for Hypertext Preprocessor.
2. We use PHP for server-side scripting and dynamic website creation.
3. Examples of dynamic websites that use PHP include Facebook, Wikipedia, and WordPress.
4. Echo in PHP outputs text to the screen.
5. The function phpinfo() displays information about PHP installation.
6. `$variable = 10;` assigns a number to a variable.
7. Types of variables in PHP include integer, double, string, boolean, array, object, NULL.
8. Comments in PHP are inserted using `//` for single-line or `/ /` for multi-line comments.
9. The basic structure of an HTML page includes ``, ``, ``, ``, `<body>`.<br>10. Examples of comparison operators include `==`, `!=`, `===`, `!==`.<br>11. Examples of increment operators include `++$x`, `$x++`.<br>12. The operator `&&` performs a logical AND operation.<br>13. The concatenation operator (full stop) in PHP combines two strings.<br>14. `echo date('H:i:s');` outputs the current time in hours, minutes, and seconds.<br>15. `echo date('j F Y');` outputs the current date in day, month, and year format.<br>16. `<title>` sets the title of an HTML page.
17. PHP code to list the answers for the 3 times tables using a for loop: `for ($x = 1; $x <= 10; $x++) { echo "$x 3 = " . $x 3 . "
"; }`.
18. Statements to connect to a MySQL database and select the database: `$conn = mysqliconnect($servername, $username, $password); mysqliselect_db($conn, $dbname);`.
19. SQL query to display all records from the table "repair": `SELECT * FROM repair;`.

Description

PHP files may contain HTML, CSS, and JavaScript. 1. PHP files are executed server-side.

Technical Information

  • File Format: PDF
  • File Size: 179 KB
  • Pages: 2
  • Language: EN
  • Total Downloads: 1,071
  • Last Updated: 1 week ago

Document Overview

This PDF document about PHP Basics provides comprehensive information and guidance. Whether you're a beginner or advanced user, this resource offers valuable insights into PHP Basics.

Related Topics

If you're interested in PHP Basics, you might also want to explore:

Download PHP Basics eBooks for free and learn more about PHP Basics. These books contain exercises and tutorials to improve your practical skills, at all levels!

Not satisfied with this document? We have related documents to PHP Basics, try searching with similar keywords: Shop Index Php Id Php Shop Php And 1 1 Index Php, Shop Index Php Id Php Shop Php And 1 1 Index Php A, Shop Index Php Id Php Shop Php And 1 1 Index Php O, Shop Index Php Id Php Shop Php Page 3 Index Php Am, Shop Index Php Id Php Shop Php Page 3 Product Php, Shop Index Php Id Php Shop Php Page 3 Shop Php , Shop Php Id 12 Php Php Shopping Php , Share Ebook Php Amp MySQL Basics And Ajax Basics

You can download PDF versions of the user's guide, manuals and ebooks about PHP Basics, you can also find and download for free A free online manual (notices) with beginner and intermediate, Downloads Documentation, You can download PDF files (or DOC and PPT) about PHP Basics for free, but please respect copyrighted ebooks.