there are functions like current() next() etc but they wont help you in this
case. I just wrote my own.

function index($array, $index)
  return @$array[$index];

$now = index(localtime(), 7);


  Chris Lee

"John A. Grant" <[EMAIL PROTECTED]> wrote in message
> In Perl I have done this:
>     $julianday=(localtime)[7];
> Is there an equivalent syntax for PHP or do I just do:
>     $now=localtime();
>     $julianday=$now[7];
> I don't need it - I'm just curious about the syntax.
> --
> John A. Grant  * I speak only for myself *  (remove 'z' to reply)
> Radiation Geophysics, Geological Survey of Canada, Ottawa
> If you followup, please do NOT e-mail me a copy: I will read it here

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to