Difference Between PHP and Javascript

Difference Between PHP and Javascript
PHP Javascript
Statement end in ; ;
Variables $variableName variableName
Declare variables by  $variableName="String or number here"; variableName="String or number here";
Print to screen by echo $variableName or  print $variableName console.log(variableName);
Concatenate This string is concatenated with ." $variableName."like so."; This string is concatenated with + $variableName  +"like so.";
Declare a function by function functionName(parameter){ // code here} var functionName= function(parameter){ }
Call a function by functionName(input here) functionName(input here)

About the author

Anuj kumar

I'm Anuj kumar a web developer with 4+ year experience .I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to is provide php , jquery , mysql , phpoops and other web development tutorials. I am trying best effort to make PHPGurukul useful for every single moment spend on this website. If you think this website is useful to visit please share with your friend and buddies.

Leave a Comment

1 Comment

Subscribe For Latest Updates