Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

PHP

Submitted By Submitted To

G.N.Prince Saikat Sharmin Akter


ID: 191-15-12665 Senior Lecturer
Section: B(54) Daffodil International University
Out-Look

 INRODUCTION
 USAGE
 A SIMPLE CODE
 OUTPUT
 DATA TYPES
 SPEED OPTIMIZATION
INTRODUCTON

What is PHP?
 PHP is an acronym for "PHP: Hypertext Preprocessor“.
 PHP is a widely-used, open source scripting language that was
originally designed for web development to produce dynamic
webpages.
 PHP scripts are executed on the server.
 PHP was created by Rasmus Lerdrof in 1995.
USAGE

 It is used for create dynamic website.


 It can Encrypt Data.
 Used for connect web application with DataBase.
 To implement the business logical layers (one or more).
 To Interacting with web server (Apache etc).
 To interacting with any back-end / database server e.g. MySQ.
 It is perfectly suited for Web development and can be embedded
directly into the HTML code.
A SIMPLE CODE

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo “Hello world”;

?>
</body>
OUTPUT

Here the out put is “Hello World”.


PHP only parses code within its delimiters. Anything outside its
delimiters is sent directly to the output and its not processed by PHP.
The most common delimiters are
<?php to open and ?>
<script language=“php”>
</script>
<?= (which is used to echo back a string or variable and) and ?>
<% or <%=and %>
DATA TYPES

 PHP stores whole numbers in a platform-dependent range.


 This range is typically that of 32-bit signed integers. Unsigned integers are
converted to signed values in certain situations.
 Arrays can contain elements of any type that handle in PHP.
 Including resources, objects and even other arrays.
 PHP also supports strings, which can be used with single quote, double quotes or
heredoc syntax.
SPEED OPTIMIZATION

 PHP scripts are stored as human-readable source code and are compiled on-the-
fly to an internal format that can be the PHP engine.
 Code optimizers aim to reduce the runtime of the compiled code by reducing its
size and making other changes that can reduce the execution time with the goal
of improving performance.
THANK YOU

You might also like