Love PHP

Estimated reading time: 1 minute

php

php means Hypertext Preprocessor . It is a server side scripting language.

<?php
echo "welcome to php world";
?>

comments

  • single line
// this is single line comment
# signle line comment
  • multi line comments
/* this is
 multi line comments */

variable

  • start with $ sign
$name = "kamal";
echo $name;
echo "${name}";
// kamal
// kamal

concat

echo "welcome to" . " " . " code4mk.org";
# welcome to  code4mk.org   
php