PHP Tution

Sunday, March 9, 2014

PHP include..

With include statement we can import reusable code and reuse it.

Example :

1.php

<?php
print "Starting 2 -->";
include '2.php';
print " <--Finishing 2";
?>

2.php

<?php
echo " <h1>Hello World</h1> ";
?>

Output:


Posted by MaHii Babariya at 12:57 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

MaHii Babariya
View my complete profile

Blog Archive

  • ▼  2014 (29)
    • ►  November (1)
    • ►  October (2)
    • ►  September (3)
    • ►  April (2)
    • ▼  March (21)
      • Simple sign up form in php using MySql.
      • OOPs in PHP :- Simple example of class
      • Use of unset in PHP
      • PHP Cookie
      • Simple example of SESSION in PHP
      • FILES method in PHP
      • REQUEST Method in PHP
      • POST Method in PHP
      • GET Method in PHP
      • Global Variable in PHP
      • User Defined Functions in PHP
      • Foreach loop example in PHP.
      • Example of Associate Array in PHP
      • Indexed Array in PHP.
      • PHP include..
      • PHP if else statement.
      • PHP Operators
      • Difference between single quotes and double quotes...
      • PHP Type Casting.
      • PHP Data Types
      • PHP Introduction
Picture Window theme. Powered by Blogger.