快速提问:在为每个循环组合2个数组时,是什么原因导致我失去刺痛值?
Array1:
array (size=971)
0 =>
array (size=4)
0 => int 2
'YrNro' => int 2
1 => string 'H�n OY' (length=6)
'YrNimi' => string 'H�n OY' (length=6)
Array2:
0 =>
array (size=16)
0 => int 8
'AineistoID' => int 8
1 => int 2
'AsiakasID' => int 2
2 => int 1
'TilaID' => int 1
3 => int 1
'OsastoID' => int 1
4 => int 1
'Kohdekk' => int 1
5 => int 2014
'Kohdevuosi' => int 2014
6 => string 'SADF' (length=4)
'Kuvaus' => string 'SADF' (length=4)
7 => string 'Apr 24 2014 01:01:07:053PM' (length=26)
'Vastaanotettu' => string 'Apr 24 2014 01:01:07:053PM' (length=26)
foreach($tilat as $line_r1)
{
foreach($yrityslista as $line_r2)
{
if($line_r1[1] == $line_r2[0])
{
$line = $line_r1;
$line[] = $line_r2[1];
//var_dump($line_r2);
$dbquery_combination[] = $line;
}
}
}
现在在结果$dbquery_combination[]
上,值应为$dbquery_combination[8] = string 'H�n OY'
的所有单元格的值为字符串' ',(空字符串);原始值会发生什么变化?
可能是因为变音符号,我应该怎么做?我尝试过类型转换并将结果切换为utf8格式。
非常感谢。