0
我有一個數組,看起來像這樣,循環通過陣列,奇怪的輸出
Array
(
[candidate_id] => 1
[first_name] => Simon
[surname] => Ainley
[gender] => male
[talent] => presenter
[DOB] => 1987-06-12
[Location] => Huddersfield
[height] => 6' 3"
[eyes] => blue
[hair] => brown
[hair_length] => short
[accents] => Native english
[training] => none
[unions] => Actors guild
[date_created] => 2011-10-11 00:00:00
)
然而,當我穿上之後,
<?php foreach ($results as $k => $v) : ?>
<?php print_r($v); ?>
<?php endforeach; ?>
使用此我得到的輸出,
1 S A m p 1 H 6 b b s N n A 2
這絕對不是你的陣列:http://ideone.com/KdsMV –
@WesleyMurch: - 或 - 不是代碼:) – hakre
喲用簡單的回聲試過嗎? – punit