473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Quickie (I guess...) - What does =& do?

Trying to learn php, and came across

=&

as in

$form =& $HTTP_POST_VARS;

I can't find any reference to =&, with no success in searching for a
definition (as though it's _so_ obvious it doesn't need explanation).

Thanks!

Jul 17 '05 #1
9 2670
Glutinous wrote:
Trying to learn php, and came across

=&

as in

$form =& $HTTP_POST_VARS;

I can't find any reference to =&, with no success in searching for a
definition (as though it's _so_ obvious it doesn't need explanation).

Thanks!

It sets $form to be another refernce to $HTTP_POST_VARS. Thus changing
the contents of one affects the other. Without the ampersand $form
becomes a copy of $HTTP_POST_VARS.

Jul 17 '05 #2
Glutinous wrote:
Trying to learn php, and came across
I can't find any reference to =&, with no success in searching for a
definition (as though it's _so_ obvious it doesn't need explanation).


it's a reference

same as

$form = &$HTTP_POST_VARS;

--
--- --- --- --- --- --- ---
ja**@croatiabiz.com
Jul 17 '05 #3
On Mon, 27 Oct 2003 10:06:55 +0000, Kevin Thorpe <ke***@pricetrak.com>
wrote:
Glutinous wrote:
Trying to learn php, and came across

=&

as in

$form =& $HTTP_POST_VARS;

I can't find any reference to =&, with no success in searching for a
definition (as though it's _so_ obvious it doesn't need explanation).

Thanks!

It sets $form to be another refernce to $HTTP_POST_VARS. Thus changing
the contents of one affects the other. Without the ampersand $form
becomes a copy of $HTTP_POST_VARS.


Thank you so much! Very helpful...

So whatever happens to the one, happens to the other also (in a manner
of speaking). As in ($input and $output being arbitary names):

<?php

$input =& $output;

echo '$input and $output are unassigned.<br>This is $input:'."
"."$input<br>";
echo 'This is $output:'." "."$output<br><br>";

$input = "Dogs";

echo '$input is now set to "Dogs".<br>This is $input:'."
"."$input<br>";
echo 'This is $output:'." "."$output<br><br>";

$output = "Cats";

echo '$output is now set to "Cats".<br>This is $input:'."
"."$input<br>";
echo 'This is $output:'." "."$output<br>";

?>

?

Jul 17 '05 #4
On Mon, 27 Oct 2003 11:09:37 +0100, "k-caj" <ja**@iskrica.com> wrote:
Glutinous wrote:
Trying to learn php, and came across
I can't find any reference to =&, with no success in searching for a
definition (as though it's _so_ obvious it doesn't need explanation).


it's a reference

same as

$form = &$HTTP_POST_VARS;


Thank you. Your 'same as &$' enabled me to look up more info. I
appreciate your help!

Jul 17 '05 #5
Glutinous wrote:

Thank you. Your 'same as &$' enabled me to look up more info. I
appreciate your help!


Slightly off topic, but I've had trouble in the past looking up non-text
functions and operators (<<<, &, @, etc.). It seems Google likes to ignore
them, even when quoted. Does anyone know a good method/place to look these up?

Thanks,
Shawn

--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #6
On Mon, 27 Oct 2003 10:39:48 -0400, Shawn Wilson
<sh***@glassgiant.com> wrote:
Glutinous wrote:

Thank you. Your 'same as &$' enabled me to look up more info. I
appreciate your help!


Slightly off topic, but I've had trouble in the past looking up non-text
functions and operators (<<<, &, @, etc.). It seems Google likes to ignore
them, even when quoted. Does anyone know a good method/place to look these up?

Thanks,
Shawn


Well, there's here... :-)

I even found searching the pdf-format php manual wasn't much help with
my query, and I didn't have any success with searching for lists of
functions and operators...

Jul 17 '05 #7
Shawn Wilson wrote:
Slightly off topic, but I've had trouble in the past looking up non-text
functions and operators (<<<, &, @, etc.). It seems Google likes to ignore
them, even when quoted.


news:d6**************************@posting.google.c om

Mostly, nonalphanumerics aren't taken literally. But Google at
least treats ampersands literally. The hash character is an odd
one though.

--
Jock
Jul 17 '05 #8
"John Dunlop" <jo*********@johndunlop.info> schrieb im Newsbeitrag
news:MP************************@news.freeserve.net ...
Shawn Wilson wrote:
Slightly off topic, but I've had trouble in the past looking up non-text
functions and operators (<<<, &, @, etc.). It seems Google likes to
ignore
them, even when quoted.
news:d6**************************@posting.google.c om


do you mean this?
http://groups.google.com/groups?hl=e...ing.google.com

Does anybody know a good search engine for strings like 'en/(*)'? Google
will search for 'en *' instead of 'en/(*)'.

Mostly, nonalphanumerics aren't taken literally. But Google at
least treats ampersands literally. The hash character is an odd
one though.

--
Jock


bye,
Markus

Jul 17 '05 #9
John Dunlop wrote:

Shawn Wilson wrote:
Slightly off topic, but I've had trouble in the past looking up non-text
functions and operators (<<<, &, @, etc.). It seems Google likes to ignore
them, even when quoted.


news:d6**************************@posting.google.c om

Mostly, nonalphanumerics aren't taken literally. But Google at
least treats ampersands literally. The hash character is an odd
one though.

--
Jock


Thanks, that'll help in the future.

Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
2
by: Alex Vinokur | last post by:
Does STL contain algorithms which generate (enable to generate) exponents, permutations, arrangements, and combinations for any numbers and words? -- Alex Vinokur mailto:alexvn@connect.to...
7
by: Ian Frawley | last post by:
Hello I have written some code that I can run as an app or as a service. Its role is to monitor the Process.Responding of an executing application. When it runs as an app it gets the...
8
by: QQ | last post by:
SpreadsheetCell(const string& initialValue); I don't understand what & means here? Thank you very much! A C++ beginner
30
by: James Daughtry | last post by:
char array; scanf("%19s", &array); I know this is wrong because it's a type mismatch, where scanf expects a pointer to char and gets a pointer to an array of 20 char. I know that question 6.12...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
5
by: lovecreatesbea... | last post by:
Does the expression *(int *)&s1 below inside the printf() statement guarantee to refer to the first member of the structure variable s1? I've tried the code and it seems that it works that way. The...
12
gpraghuram
by: gpraghuram | last post by:
Hi , In one of the code i saw a declartion like this virtual void check(Base*& ptr); I cant make out what this *& means and this is ina c++ code Can somebody throw some light on this Raghuram
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.