Thanks Bob, So how about this:
<?php $one="banana"; $two="one"; $three="two"; $four="three"; $five="four"; echo $$$$$five; // prints "banana" ?> On 24/12/05, Bob <[EMAIL PROTECTED]> wrote: > > Ian Bambury wrote: > > >If you're still not clear try thinking of it like this: > > > >$one = "banana" > >$two = "one" > > > >echo $two; // gives "one" > > > >but > > > >echo $$two; // gives "banana" > > > >This is because > >* PHP looks at "$$two" and, working right to left, substitutes the value > of > >"$two" > >* "$$two" now becomes "$one" > >* PHP goes a step further and looks to see what is in "$one" and comes up > >with "banana" > > > >Any clearer? I don't suppose so :-) > > > > > > > Hi Ian, been following the thread. An excellent explaination! > Bob. > > > > Community email addresses: > Post message: [email protected] > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > > > > SPONSORED LINKS > Php > mysql<http://groups.yahoo.com/gads?t=ms&k=Php+mysql&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=FLGkJVBUdDMln4PBO26sng> > Job > postings<http://groups.yahoo.com/gads?t=ms&k=Job+postings&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=cV3rp9pSpCxahJy7imon_w> > ------------------------------ > YAHOO! GROUPS LINKS > > > - Visit your group "php-list<http://groups.yahoo.com/group/php-list>" > on the web. > > - To unsubscribe from this group, send an email to: > [EMAIL PROTECTED]<[EMAIL PROTECTED]> > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------ > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
