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! 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.
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
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>";
?>
?
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!
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
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...
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
"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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
by: QQ |
last post by:
SpreadsheetCell(const string& initialValue);
I don't understand what & means here?
Thank you very much!
A C++ beginner
|
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...
|
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 & to be valid. I don't
have Firefox my self and don't wont to install it only...
|
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...
|
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
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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...
| |