aboutsummaryrefslogtreecommitdiff
path: root/files/vi/tu-dien-thuat-ngu/php
diff options
context:
space:
mode:
Diffstat (limited to 'files/vi/tu-dien-thuat-ngu/php')
-rw-r--r--files/vi/tu-dien-thuat-ngu/php/index.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/files/vi/tu-dien-thuat-ngu/php/index.html b/files/vi/tu-dien-thuat-ngu/php/index.html
new file mode 100644
index 0000000000..f75d0f07e7
--- /dev/null
+++ b/files/vi/tu-dien-thuat-ngu/php/index.html
@@ -0,0 +1,54 @@
+---
+title: PHP
+slug: Tu-dien-thuat-ngu/PHP
+translation_of: Glossary/PHP
+---
+<p>PHP (a recursive initialism for PHP: Hypertext Preprocessor) is an open-source server-side scripting language that can be embedded into HTML to build web applications and dynamic websites.</p>
+
+<h2 id="Examples">Examples</h2>
+
+<h3 id="Basic_syntax">Basic syntax</h3>
+
+<pre class="brush: php notranslate"> // start of PHP code
+&lt;?php
+ // PHP code goes here
+ ?&gt;
+// end of PHP code</pre>
+
+<h3 id="Printing_data_on_screen">Printing data on screen</h3>
+
+<pre class="brush: php notranslate">&lt;?php
+ echo "Hello World!";
+?&gt;</pre>
+
+<h3 id="PHP_variables">PHP variables</h3>
+
+<pre class="brush: php notranslate">​​​​​​​&lt;?php
+ // variables
+ $nome='Danilo';
+ $sobrenome='Santos';
+ $pais='Brasil';
+ $email='danilocarsan@gmailcom';
+​​​​​​​
+ // printing the variables
+ echo $nome;
+ echo $sobrenome;
+ echo $pais;
+ echo $email;
+?&gt;</pre>
+
+<section class="Quick_links" id="Quick_Links">
+<ol>
+ <li><a href="http://php.net/">Official website</a></li>
+ <li>{{Interwiki("wikipedia", "PHP")}} on Wikipedia</li>
+ <li><a href="https://en.wikibooks.org/wiki/PHP_Programming">PHP</a> on Wikibooks</li>
+ <li><a href="/en-US/docs/Glossary">MDN Web Docs Glossary</a>
+ <ol>
+ <li>{{Glossary("Java")}}</li>
+ <li>{{Glossary("JavaScript")}}</li>
+ <li>{{Glossary("Python")}}</li>
+ <li>{{Glossary("Ruby")}}</li>
+ </ol>
+ </li>
+</ol>
+</section>