П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 5962 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8105 раз(а).

Учебник HTML.
Просмотров 4797 раз(а).

Руководство по PHP5.
Просмотров 1811 раз(а).

Хостинг через призму DNS.
Просмотров 6803 раз(а).

Подборка текстов стандартных документов.
Просмотров 57454 раз(а).

Учебник PHP - Самоучитель
Просмотров 5073 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11179 раз(а).

Внешние атаки...
Просмотров 6935 раз(а).

Учебник PHP.
Просмотров 4109 раз(а).

SSI в примерах.
Просмотров 1128 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

unpack

(PHP 3, PHP 4, PHP 5)

unpack -- Unpack data from binary string

Description

array unpack ( string format, string data )

unpack() from binary string into array according to format. Returns array containing unpacked elements of binary string.

unpack() works slightly different from Perl as the unpacked data is stored in an associative array. To accomplish this you have to name the different format codes and separate them by a slash /.

Пример 1. unpack() example

<?php
$array
= unpack("c2chars/nint", $binarydata);
?>

The resulting array will contain the entries "chars1", "chars2" and "int".

Предостережение

Note that PHP internally stores integral values as signed. If you unpack a large unsigned long and it is of the same size as PHP internally stored values the result will be a negative number even though unsigned unpacking was specified.

See also pack() for an explanation of the format codes.



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru