Possible Duplicate:
unset last item of array
i want do this without of expload, array_pop and array_shift
$item[$fieldneedle] = " node_os_disk_danger ";
$objectName = preg_split('/_/',$item开发者_Go百科[$fieldneedle]);
$objectName == "os_disk";
in this example i need os_disk
/(?:^.*?_)(.*)(?:_.*$)/
..will only capture the os_disk
part
精彩评论