Re: foreach problem part two [message #184275 is a reply to message #184270] |
Thu, 19 December 2013 19:20 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 19/12/13 19:00, Christoph Michael Becker wrote:
> Am 19.12.2013 19:41, schrieb richard:
>> <?php
>> foreach ($aname as $item){
>> echo $aname[$item][1];
>> echo " (".$aname[$item][2].")";
>> }
>> ?>
>>
>> I decided to create a second array that holds only the artist and number of
>> records.
>> So why am I getting "invalid argument" with this?
>
> You may consider reading the manual:
> <http://www.php.net/manual/en/control-structures.foreach.php>.
>
IF I had £5 for every time someone has suggested richard reads the
manaul THEN I'd be able to afford a new computer.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
|
|
|