hey guyz!!! just new to php and I just want to know if what do this line of code means??
function &function-name()
& operator
Moderator: General Moderators
Re: & operator
There's an entire section of the PHP manual dedicated to it.
Spoiler: they're called "references". It means you can return variables themselves, not just what values they have.
Spoiler: they're called "references". It means you can return variables themselves, not just what values they have.
Re: & operator
thankz!!!
can you also help me with this one..
it looks like commands in windows...
my friend show it to me...
i thought they are just ordinary echo statements......
can you also help me with this one..
Code: Select all
$cd = `cd C:\`;
echo $cd;
$rem = `rmdir C:\projects\`;
echo $rem;
$output = `mkdir C:\pr-new\`
echo $output;my friend show it to me...
i thought they are just ordinary echo statements......
Last edited by jorj on Thu Jul 16, 2009 9:45 pm, edited 1 time in total.
Re: & operator
thanks for the links!!!
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: & operator
The backtick operator is like exec(). It works like in the Unix shell or Perl.
(#10850)