ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá














     áòèé÷ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-talk] php's config



VK>> ÞÔÅÎÉÑ ÉÚ ÆÁÊÌÁ ÚÁÐÉÓÉ ×ÒÏÄÅ struct { int a; char b[8]; long c;
VK>> short int d[6]};

class struct {
        var $a;
        var $b;
        var $c;
        var $d;

        function struct() { // constructor
                $this->a=1;
                $this->b=range(1,8); // 8 integers
                $this->c=100000;
                $this->d=range(1,6); // 6 integers
        }
}

$foo = new struct();

$fp = fopen("file","w");
fputs($fp,serialize($foo));
fclose($fp);

$fp = fopen("file","r");
$bar = unserialize(fgets($fp,4096));
fclose($fp);

var_dump($bar);


-- 
frodo@sharat.co.il      \/  There shall be counsels taken
Stanislav Malyshev      /\  Stronger than Morgul-spells
phone +972-3-9316425    /\              JRRT LotR.
http://sharat.co.il/frodo/      whois:!SM8333


=============================================================================
=               Apache-Talk@lists.lexa.ru mailing list                      =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
=       Archive avaliable at http://www.lexa.ru/apache-talk                 =



 




Copyright © Lexa Software, 1996-2009.