Changing values in multidimensional associateive array
Posted: Thu Aug 17, 2006 4:18 am
JayBird | Please use
It works right (at least inner loop) but end results (changed values) in $tabelaCSV are not saved.
Any help will be really appreciated:)
JayBird | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have some problem with changing values in associative array:
My exampleCode: Select all
foreach ($tableCSV as $row){
foreach ($row as $int=>$value){
$row[$int] = str_replace("\xb9","\xc5\xa1",$value);
print_r($row[$int]);
}
}
print("<PRE>");
print_r($tableCSV);
print("<PRE>");Any help will be really appreciated:)
JayBird | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]