& operator

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jorj
Forum Newbie
Posts: 7
Joined: Tue Jul 14, 2009 8:54 pm

& operator

Post 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()
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: & operator

Post 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.
jorj
Forum Newbie
Posts: 7
Joined: Tue Jul 14, 2009 8:54 pm

Re: & operator

Post 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......
Last edited by jorj on Thu Jul 16, 2009 9:45 pm, edited 1 time in total.
jorj
Forum Newbie
Posts: 7
Joined: Tue Jul 14, 2009 8:54 pm

Re: & operator

Post by jorj »

thanks for the links!!!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: & operator

Post by Christopher »

The backtick operator is like exec(). It works like in the Unix shell or Perl.
(#10850)
Post Reply