array_slice?

In the db_query function in fn.database.php there is a line of code I can’t quite decipher…



function db_query($query)
{
Registry::set('runtime.database.long_query', false);

[B][COLOR="Red"]$args = func_get_args();[/COLOR][/B]
[B][COLOR="Red"]$query = db_process($query, array_slice($args, 1));[/COLOR][/B]




Anyone know what’s going on here? Both, func_get_args() and array_slice() are php functions. From the php manual online:



func_get_args() – Gets an array of the function’s argument list.

array_slice() – returns the sequence of elements from the array array as specified by the offset and length parameters.



So maybe someone can help me figure out what is going in each of these variables so I can understand how this is working? Thanks in advance.