0 votes
166 views
in Programming by (300 points)
Can anyone tell me how to Declare Variables in PHP with examples?

1 Answer

0 votes
by

If you want to declare variables in PHP, Use $ Sign.

Example :

<?php
$a = "Hello";
echo $a ; // Output Hello
?>

For more information checkout this link Declare PHP Variables

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated