answersLogoWhite

0


Best Answer

The ampersand causes two variables to share (point to) the same address in memory. For example:

<php

$first = "first";

$second = &$first;

$second = "third";

echo "$first-$second"; // third-third

?>

See the related link for an official, more detailed expanation.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Whats the use of using ampersand in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you include an ampersand in a PHP GET variable?

Use hex codepoints (with percent-signs) to force special characters in a URL: http://www.example.com/foo.php?bar=%26 &lt;?php var_dump($_GET['bar']) // &amp; ?&gt; http://www.example.com/foo.php?%26=bar &lt;?php var_dump($_GET['&amp;']) // bar ?&gt;


Ampersand in a sentence?

Ampersand is use for Title, and Fragments .


Can you use an ASP textbox using PHP?

No


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


Why do we use Php?

PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.


Why do people use a double ampersand?

they use it to shorten the word AT. @=at edit by Superflipper @ = not an ampersand. &amp; = ampersand. they use double ampersand (&amp;&amp;) to be trendy or honestly don't know that you're only supposed to use one. It was a ridiculous movement that started on myspace. Pronounce it as "and and".


How do you use ampersand in a sentence?

The ampersand is number seven on a standard keyboard.


Is it proper to use an ampersand in french?

It is proper to use an ampersand in French. Use it with the same usage rules that you would use in English.


How can files be converted into HTML using PHP?

To rename a file in PHP the easiest way to do it is to use the rename() function. &lt;?php rename("before.txt", "after.html"); ?&gt;


What is an ampersand?

It is the full name for the text symbol "&amp;" meaning "and" or "in addition to." You can use the ampersand by holding down the SHIFT and 7 keys, which will display the ampersand.


Do you use an ampersand or and spelled out when addressing Mr and Mrs on a letter?

The preferred way to address a couple is to spell out the word 'and' rather than using the ampersand. This might not apply rigidly if you are dealing with a fairly informal letter.


What is the GET method in PHP?

The GET method in PHP allows you to grab information from the URL to use in your script.For example, say you are on the URL index.php?id=1 you could then in the PHP script grab the id using the GET method to use in your script.