Showing posts with label Php. Show all posts
Showing posts with label Php. Show all posts

Thursday 10 April 2014

PHP is case sensitive

PHP is case sensitive

Yeah it is true that PHP is a case sensitive language. Try out following example:
<html>
<body>
<?
$capital = 67;
print("Variable capital is $capital<br>");
print("Variable CaPiTaL is $CaPiTaL<br>");
?>
</body>
</html>
This will produce following result:
Variable capital is 67
Variable CaPiTaL is

"Hello World" Script in PHP

"Hello World" Script in PHP


To get a feel for PHP, first start with simple PHP scripts. Since "Hello, World!" is an essential example, first we will create a friendly little "Hello, World!" script.

As mentioned earlier, PHP is embedded in HTML. That means that in amongst your normal HTML (or XHTML if you're cutting-edge) you'll have PHP statements like this:

<html>
<head>
<title>Hello World</title>
<body>
    <?php echo "Hello, World!";?>
</body>
</html>
It will produce following result:

Hello, World!

Comment

Comment Box is loading comments...