Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用print_r($links[1]);将以下内容返回到页面:
print_r($links[1]);
Array ( [0] => lol [1] => this [2] => is [3] => a [4] => freaking [5] => test )
如何获取 0: "lol" 的值,并将其回显到页面?
这很简单:
echo $links[1][0];
是的,这很简单:
echo $links[0];