Reply to Re: Is $Settings['string'] An Example Of An Array?

Your name:

Reply:


Posted by Janwillem Borleffs on 11/02/05 22:28

Ian B wrote:
> $stuff["phone"]="0123456789";
> // 0, 14, 15, 16
> // but $stuff[16] get you the same thing as $stuff['phone']
>

No, it won't. Index 16 will not be defined unless specified. If you want
$stuff[16] to return the same value as the 'phone' key, you should define
both:

$stuff['phone'] = 12345;
$stuff[16] =& $stuff['phone'];
$stuff['phone'] =& $stuff[16];

$stuff['phone'] .= 6;
$stuff[16] .= 7;
print $stuff[16]; // 1234567
print $stuff['phone']; // 1234567


JW

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация