Page 1 of 1
& operator
Posted: Thu Jul 16, 2009 9:01 pm
by jorj
hey guyz!!! just new to php and I just want to know if what do this line of code means??
function &function-name()
Re: & operator
Posted: Thu Jul 16, 2009 9:07 pm
by requinix
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.
Re: & operator
Posted: Thu Jul 16, 2009 9:20 pm
by jorj
thankz!!!
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;
it looks like commands in windows...
my friend show it to me...
i thought they are just ordinary echo statements......
Re: & operator
Posted: Thu Jul 16, 2009 9:23 pm
by jorj
thanks for the links!!!
Re: & operator
Posted: Thu Jul 16, 2009 10:04 pm
by Christopher
The backtick operator is like exec(). It works like in the Unix shell or Perl.