Re: Re[2]: [PHP] equivalent to perl shift function

2008-05-01 Thread Robin Vickery
2008/5/1 Richard Luckhurst <[EMAIL PROTECTED]>: > Hi Chris, > > In perl ther is the concept of @_ which is the list of incoming parameter > to a > subroutine. It is possible to have something like > > my $sock = shift; > > As I understand this the first parameter of the @_ list would be shift

Re[2]: [PHP] equivalent to perl shift function

2008-05-01 Thread Richard Luckhurst
Hi Chris, In perl ther is the concept of @_ which is the list of incoming parameter to a subroutine. It is possible to have something like my $sock = shift; As I understand this the first parameter of the @_ list would be shifted. I see for array_shift there must be an argument, the array name

Re: [PHP] equivalent to perl shift function

2008-05-01 Thread Chris
Richard Luckhurst wrote: > Hi All > > I am in the process of porting a perl script and I am trying to fin out if > there > is a php equivalent to the perl shift function? I have been looking at the php > manual and google searching so far with no luck. http://www.php.net/manual/en/function.array

[PHP] equivalent to perl shift function

2008-05-01 Thread Richard Luckhurst
Hi All I am in the process of porting a perl script and I am trying to fin out if there is a php equivalent to the perl shift function? I have been looking at the php manual and google searching so far with no luck. Regards, Richard Luckhurst -- PHP General Mailing