Array
(
[0] => LinkedIn Corporation
[1] => www.linkedin.com
[2] => 2029 Stierlin Ct
Mountain View, CA 94043-4655
United States map
[3] => +1.650.687.3600
[4] => Software & Internet, E-commerce and Internet Businesses
Software & Internet, Data Analytics, Management and Storage
Business Services, HR and Recruiting Services
[5] => 1K - 10K
[6] => > $1B
[7] => Publicly Traded - NASDAQ : LNKD
)
答案 0 :(得分:2)
顺便说一句foreach
不是循环而是语言结构。
像这样穿过。
foreach($yourarr as $k=>$v)
{
echo "The Key:$k and The Value:$v<br>";
}