structures in php ?

From: Adrian Parker (apparker_at_nospam.com)
Date: 01/31/04


Date: Sat, 31 Jan 2004 09:38:16 -0000

How do you create data structures in php ?

i.e. how would I create the following two vb structures in php ?

    Structure SYSTEMTIME
        Dim wYear As Short
        Dim wMonth As Short
        Dim wDayOfWeek As Short
        Dim wDay As Short
        Dim wHour As Short
        Dim wMinute As Short
        Dim wSecond As Short
        Dim wMilliseconds As Short
    End Structure

    Private Structure TIME_ZONE_INFORMATION
        Dim Bias As Integer
        Dim StandardBias As Integer
        Dim DaylightBias As Integer
        Dim StandardDate As SYSTEMTIME
        Dim DaylightDate As SYSTEMTIME
    End Structure

Also, if I read a binary value from the registry, how would I then convert it to a variable of type TIME_ZONE_INFORMATION

Many Thanks

-- 
Adrian Parker


Relevant Pages

  • Re: [OT] Is OO incompatible with the three tier architecture
    ... >> reality dictates that you use the LIMIT option which is can only be ... Where is PHP ... you can populate objects and data structures on ... You pays yer money and you ...
    (comp.lang.php)
  • COM Interop -- Class Library vs. EXE
    ... these data structures to persist so that I do not have to recreate them each ... do not need to incur the penaly of building the internal data structures. ... The problem is that on my web server, PHP instantiates a new instance of my ... So the next time the user hits a ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: COM Interop -- Class Library vs. EXE
    ... I think it is a simple matter of moving your data structures to a static ... Once the CLR is loaded, it is not going to be unloaded for the ... > I am developing classes in C# that are called from PHP via COM. ... > object each time a PHP page is hit -- and destroys the object (and unloads ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: [PHP] OT - RE: [PHP] scalable web gallery
    ... Subject: [PHP] OT - RE: scalable web gallery ... In spite of this mental exercise, I do *NOT* miss my Data Structures ... Haven't taken a distributed computing class just yet, ...
    (php.general)
  • Re: structures in php ?
    ... > How do you create data structures in php? ... > Structure SYSTEMTIME ... PHP does not have support for Structures or structs in the traditional ... live their lives governed not by rules but by reason. ...
    (comp.lang.php)