On 5/3/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
Jonas Said:
>> But when I want to have a value from a special column i a row the
>> followint
>> doesn't work:
>>
>>$test[$row[2]] = $row[5];
>>
>> Or:
>>
>>$test[$row(2)] = $row[5];
>>
>> Do I need to do some kind of concatenating?
>>
A
Jonas - what do you mean 'it doesn't work'
(it's like me saying 'the ATM doesn't work and
forgetting to mention I'm trying to withdraw 10,000,000
disney dollars - when I mention that fact the reason is probably
obvious to you why it doesn't work)
Brad Bonkoski wrote:
What kind of values are sto
What kind of values are stored in $row[2] and $row[5]?
You might need to keep the single quotes
$test['$row[2]'] = $row[5];
-Brad
Jonas Rosling wrote:
There's allways mutch to learn. :-) I'm very happy for all help I can get.
I ran into another problem when trying to insert a value.
I had
There's allways mutch to learn. :-) I'm very happy for all help I can get.
I ran into another problem when trying to insert a value.
I had no problem with:
$test['something'] = '2500';
But when I want to have a value from a special column i a row the followint
doesn't work:
$test[$row[2]
Jonas Rosling wrote:
Need solve another case regarding array maps. Is it possible to insert more
Jonas - in php we just call these things arrays (no 'map') - the array
datatype in php is a mash up (and we love it :-) of the 'oldschool' numerically
indexed array and what is commonly known as a h
Stut wrote:
Brad Bonkoski wrote:
$colors['black'] = '#ff';
Black? Are you sure?
Brad might be wearing his 'negative' goggles today :-)
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Need solve another case regarding array maps. Is it possible to insert
more
values like with array_push in arrays as bellow?
$colors = array(
'red' => '#ff',
'green' => 'X00ff00',
'blue' => '#ff'
);
[/snip]
// Append associative
or white ;-)
Stut wrote:
Brad Bonkoski wrote:
$colors['black'] = '#ff';
Black? Are you sure?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Bonkoski wrote:
$colors['black'] = '#ff';
Black? Are you sure?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jonas Rosling wrote:
Need solve another case regarding array maps. Is it possible to insert more
values like with array_push in arrays as bellow?
$colors = array(
'red' => '#ff',
'green' => 'X00ff00',
'blue' => '#ff'
);
Did you try i
Need solve another case regarding array maps. Is it possible to insert more
values like with array_push in arrays as bellow?
$colors = array(
'red' => '#ff',
'green' => 'X00ff00',
'blue' => '#ff'
);
Yes.
http://www.php.net/array_pus
I don't believe you 'push' to an associative array like this,
but if you want to add black for example...just do:
$colors['black'] = '#ff';
-Brad
Jonas Rosling wrote:
Need solve another case regarding array maps. Is it possible to insert more
values like with array_push in arrays as bellow
12 matches
Mail list logo