answersLogoWhite

0

the dollar sign appears before a variable/array. Essentially it just tells php that its a variable.

$food = "cheese Pizza";

or

$myfavoritenumber = 2 ;

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Basic Math

What is the Use of a double dollar sign in php?

A double dollar sign in php makes a variable with a name equal to the value of the original variable. It works like this:$var = "keith";$$var = "palmer";print ($keith);// The output is: palmer


All variables in PHP start with which symbol?

In PHP, all variables must the preceded by the dollar sign. Variable name must not contain any space as well.


What are the basic rules of php program?

The basic rules of PHP programming include proper syntax, such as using <?php to start and ?> to end a PHP block. Variables start with a dollar sign ($) and are case-sensitive. Statements must end with a semicolon, and comments can be added using // for single-line or /* ... */ for multi-line comments. Additionally, it's essential to ensure proper indentation and organization for readability and maintainability.


Why we use javascript as we have a powerful scripting language php?

First of all, PHP is server side, Javascript is client side. You cannot detect mouse gestures or any clicks with PHP the same way you cannot read a file or modify it or process a form (unless you use AJAX of course). Also, although I love PHP, and it has useful extensions such as the GD library, PHP is not a very good language. Overall we use javascript and PHP because they are used for two completely different things.


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>

Related Questions

What is the Use of a double dollar sign in php?

A double dollar sign in php makes a variable with a name equal to the value of the original variable. It works like this:$var = "keith";$$var = "palmer";print ($keith);// The output is: palmer


What is the difference between variable and doubledollar sign in php?

I believe that in PHP syntax, double dollar sign is used when it is needed to pass on a variable, that has not yet been defined. Generally, this feature is not safe to use a can result in errors. Every algorithm which needs this kind of element, can also be handled by other means.


All variables in PHP start with which symbol?

In PHP, all variables must the preceded by the dollar sign. Variable name must not contain any space as well.


Which sign is used to concatenate two strings?

That depends on the programming language. Most languages use the "+" sign, but a few use other signs. For example, PHP uses the dot.


What is the use of a question mark in php?

It is used to tell the sever to use the PHP parser. To begin php you must use <?php, and to end it, it is ?>.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


What is the french dollar sign?

The French use the Euro, €


What are the basic rules of php program?

The basic rules of PHP programming include proper syntax, such as using <?php to start and ?> to end a PHP block. Variables start with a dollar sign ($) and are case-sensitive. Statements must end with a semicolon, and comments can be added using // for single-line or /* ... */ for multi-line comments. Additionally, it's essential to ensure proper indentation and organization for readability and maintainability.


What is the abbreviation for the word money?

dude, use a dollar sign.


Does the negative sign come before or after the dollar sign?

Does the negative sign come before or after the dollar sign?The negative sign comes before the dollar sign.


What is the dollar sign used for?

money --> ([dollar] sign) <--


Why should you use PHP and not JSP?

Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?