Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Wednesday, 6 March 2024

How to Declare and Define a Variable in PHP


How to Declare and Define a Variable in PHP

In PHP Variable starts with the $ sign.
$ sign is always used with variable name whether the variable is going to be declared or defined.

Variable Declaration
$num;
$name;

Variable Definition
$num = 5;
$name = "usman";

Here variable $num contains the value "5" assigned to it.
Here variable $name contains the value "usman"

Syntax of PHP


Syntax of PHP

<html>
<body>

<?php

//PHP Code is written here.

?>

</body>
</html>

Introduction to PHP

Introductin of PHP

  • PHP is a server-side language
  • It is writting inside the <body> tag of HTML.
  • It is compatible with multiple operating systems including Linux, Unix, Windows, Mac OS etc.
  • It is used to link HTML forms to database tables created on server. 
  • It is used to manage dynamic content on websites.
  • It is compatible with the multiple databases including mysql, ms sql server, oracle, sybase, informix etc

CEOs and Founder of IT Companies

  CEOs and Founders of IT Companies  Amazon CEO: Andy Jassy Founder: Jeff Bezos   Google CEO: Sundar Pichai Founders: Larry Page...