Introduction to Function in PHP Scripting Language - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction to Function in PHP Scripting Language

Description:

The function of PHP scripting language has been explained. You can get guidance in PHP. Contact us now! – PowerPoint PPT presentation

Number of Views:174

less

Transcript and Presenter's Notes

Title: Introduction to Function in PHP Scripting Language


1
Introduction to Function in PHP Scripting Language
2
Table of Content
  • PHP Scripting Language
  • Power of PHP
  • Popularity of PHP
  • Popular Frameworks
  • Syntaxes
  • Demo Code
  • Functions in PHP
  • Functions Sample Code
  • Why Choose Us
  • Contact Details

3
PHP Scripting Language
  • PHP stands for Hypertext Pre-processer
  • It is a server-side scripting language
  • It is a widely-used programming language
  • It is an open-source, general-purpose, and
    object-oriented language
  • It is used to build dynamic webpages
  • PHP source code can be easily embedded into HTML
  • This language is particularly for web development

4
Power of PHP
  • Easily change webpage content
  • Accumulate form input
  • Transfer and get wafers
  • Interact directly to the database
  • Perform operations on webserver like create,
    open, delete, etc.
  • Do encryption

5
Popularity of PHP
  • Platforms independent (run on Windows, Linux,
    Unix, Mac OS X, etc.)
  • Servers independent (Fit with Apache, IIS, etc.)
  • Assist with an extensive range of databases
  • Flexible and economical (open-source and secure)
  • Has faster turn-around time, increased security,
    and affordability
  • Ability to work efficiently on the server-side

6
Popular Frameworks
  • Laravel
  • Symfony
  • Zend
  • Yii 2
  • Phalcon
  • CodeIgniter
  • CakePHP
  • FuelPHP

7
Syntaxes
  • .php is the extension of all PHP script files
  • Web server understands this extension assignation
    of PHP
  • All scripts are written in lt?php // PHP code goes
    here ?gt tag
  • PHP instructions can be controlled in HTML
  • PHP scripts end in
  • Single line comment or //
  • Multiple line comment / comment /
  • PHP is case sensitive
  • To define a code block, curly braces are used
  • Based on the source code, the result is delivered
    to the browser

8
Demo Code
  • Script
  • Output
  • lt!DOCTYPE htmlgt
  • lthtmlgt
  • ltbodygt
  • lth1gtPHP Tutoriallt/h1gt
  • lt?php echo This is the first PHP Example" ?gt
  • lt/bodygt
  • lt/htmlgt
  • PHP Tutorial
  • This is the first PHP Example

9
Functions in PHP
  • PHP Built-in Functions-
  • PHP has 1000 built-in functions
  • addcslashes()
  • addslashes()
  • bin2hex()
  • chop()
  • chr()
  • Etc.

10
Functions in PHP (Cont.)
  • PHP User Defined Functions-
  • A block of statements that repeats several times
    in a program
  • It will not execute repeatedly when a page opens.
  • It will execute by a call to the function

11
Functions Sample Code
  • Simple
  • With Argument
  • Code-
  • lt?phpfunction func()   echo Function
    Here"func()?gt
  • Output-
  • Function Here
  • Code-
  • lt?php
  • function funcArg(fname)
  • echo "fname PHP.ltbrgt"
  • funcArg("Hello")
  • ?gt
  • Output-
  • Hello PHP.

12
Why Choose Us
  • We provide the best PHP assignment help in the
    USA
  • We have experienced PHP coders who can assist you
    to solve your assignments.
  • We provide 247 online assistance.
  • We have a safe payment method
  • We provide 100 customer satisfaction in our work

13
Contact Details
  • Phone Number
  • 14235002312
  • Email ID
  • info_at_dreamassignment.com
  • Website
  • https//www.dreamassignment.com/php-assignment-hel
    p
Write a Comment
User Comments (0)
About PowerShow.com