是否有内置的php函数或将元素插入到数组的开头的简单方法?将一个元素添加到数组的开头php
类似:
$matches = Array("apples", "oranges");
insert_to_beginning($matches, "peach");
内容:
$matches[0] = peach
$matches[1] = apples
$matches[2] = oranges
是否有内置的php函数或将元素插入到数组的开头的简单方法?将一个元素添加到数组的开头php
类似:
$matches = Array("apples", "oranges");
insert_to_beginning($matches, "peach");
内容:
$matches[0] = peach
$matches[1] = apples
$matches[2] = oranges
嘿,我是第一个! ;-) – zerkms
@zerkms:嘿,我提供了一个非特定于语言环境的链接! (是的,我知道你是第一个,叹气。) – Ryan