Showing posts with label php tutorials. Show all posts
Showing posts with label php tutorials. Show all posts

Saturday, October 3, 2009

Variables in php

Using variables in php


In php there is not any need of declaring a variable before adding value to it.
Variables in php start with a dollar sign "$" and there are some rules for naming a variable.
Naming rules are
1.A variable name cannot have space
2.Alphanumerics and underscroes are used in a variable's name

Suppose we want to store "info" in a variable which is "$i" then the coding will be
<php?
$i="info";
?>

Read more...

How to print "hello world" on screen using php

Its very simple to write hello world in php.The code is

<php?
echo "hello world";
?>

Read more...

IT NEWS

New IT World |Technology Computer Robotics |Pakistan Plus

Designed and Seo by : WebMangoes | Back to TOP