PHP Series – 001 – Hello World

INTRODUCTION OF PHP

  • PHP means Hypertext Preprocessor.
  • PHP is a programming language,it is simple to learn,simple to write,simple to read and simple to debug.
  • PHP is a serverside scripting language that has its main implementation in web development.
  • PHP has effectively a garbage collected environment.
  • It is a combination of web browser and webserver.
  • Example for PHP

php

 

The main difference between PHP and Other languages are :-

1.PHP variables are started with Doller sign($)

2.PHP has only two numerical types.

integer

double

3.C,C++ is a compiled language and PHP is a interpreted language.

Example for compiled and interpreted language is

php1

The simple helloworld program make the difference between php and other languages.


using System;

class ExampleClass{

static void Main(){Console.WriteLine("Hello, world!");

}}

In PHP we can simple to create


<?php echo 'Hello World';?>

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s