Re: [PHP] trying to understand PHP unpack();

2005-08-01 Thread Jochem Maas
Sonia wrote: Hi In Perl I have a part of a script # cut.. my $line = '!v2005*08|05+09?04^19*!'; ^-- note how my email client screws up your original string... something I don't really understand... my ( $s_code, $year, $month, $day, $hour, $minute, $sec

[PHP] trying to understand PHP unpack();

2005-08-01 Thread Sonia
Hi In Perl I have a part of a script # cut.. my $line = '!v2005*08|05+09?04^19*!'; my ( $s_code, $year, $month, $day, $hour, $minute, $second, $e_code ) = unpack ( "x1 A1 A4 x1 A2 x1 A2 x1 A2 x1 A2 x1 A2 A1", $line ); print $s_code . "\n"; print $year . "\n"; print $month . "\n"; print $da