• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. php pack與unpack 摸板字符字符含義簡介

        時(shí)間:2024-09-28 02:02:20 PHP 我要投稿
        • 相關(guān)推薦

        php pack與unpack 摸板字符字符含義簡介

          format 參數(shù)的可能值:

          a - NUL-padded string

          A - SPACE-padded string

          h - Hex string, low nibble first

          H - Hex string, high nibble first

          c - signed char

          C - unsigned char

          s - signed short (always 16 bit, machine byte order)

          S - unsigned short (always 16 bit, machine byte order)

          n - unsigned short (always 16 bit, big endian byte order)

          v - unsigned short (always 16 bit, little endian byte order)

          i - signed integer (machine dependent size and byte order)

          I - unsigned integer (machine dependent size and byte order)

          l - signed long (always 32 bit, machine byte order)

          L - unsigned long (always 32 bit, machine byte order)

          N - unsigned long (always 32 bit, big endian byte order)

          V - unsigned long (always 32 bit, little endian byte order)

          f - float (machine dependent size and representation)

          d - double (machine dependent size and representation)

          x - NUL byte

          X - Back up one byte

          @ - NUL-fill to absolute position

          a一個(gè)填充空的字節(jié)串

          A一個(gè)填充空格的字節(jié)串

          b一個(gè)位串,在每個(gè)字節(jié)里位的順序都是升序

          B一個(gè)位串,在每個(gè)字節(jié)里位的順序都是降序

          c一個(gè)有符號char(8位整數(shù))值

          C一個(gè)無符號char(8位整數(shù))值;關(guān)于Unicode參閱U

          d本機(jī)格式的雙精度浮點(diǎn)數(shù)

          f本機(jī)格式的單精度浮點(diǎn)數(shù)

          h一個(gè)十六進(jìn)制串,低四位在前

          H一個(gè)十六進(jìn)制串,高四位在前

          i一個(gè)有符號整數(shù)值,本機(jī)格式

          I一個(gè)無符號整數(shù)值,本機(jī)格式

          l一個(gè)有符號長整形,總是32位

          L一個(gè)無符號長整形,總是32位

          n一個(gè)16位短整形,“網(wǎng)絡(luò)”字節(jié)序(大頭在前)

          N一個(gè)32位短整形,“網(wǎng)絡(luò)”字節(jié)序(大頭在前)

          p一個(gè)指向空結(jié)尾的字串的指針

          P一個(gè)指向定長字串的指針

          q一個(gè)有符號四倍(64位整數(shù))值

          Q一個(gè)無符號四倍(64位整數(shù))值

          s一個(gè)有符號短整數(shù)值,總是16位

          S一個(gè)無符號短整數(shù)值,總是16位,字節(jié)序跟機(jī)器芯片有關(guān)

          u一個(gè)無編碼的字串

          U一個(gè)Unicode字符數(shù)字

          v一個(gè)“VAX”字節(jié)序(小頭在前)的16位短整數(shù)

          V一個(gè)“VAX”字節(jié)序(小頭在前)的32位短整數(shù)

          w一個(gè)BER壓縮的整數(shù)

          x一個(gè)空字節(jié)(向前忽略一個(gè)字節(jié))

          X備份一個(gè)字節(jié)

          Z一個(gè)空結(jié)束的(和空填充的)字節(jié)串

          規(guī)則:

          1.每個(gè)字母后面都可以跟著一個(gè)數(shù)字,表示count(計(jì)數(shù)),如果count是一個(gè)*表示剩下的所有東西。

          2.如果你提供的參數(shù)比$format要求的少,pack假設(shè)缺的都是空值。如果你提供的參數(shù)比$format要求的多,那么多余的參數(shù)被忽略。

        【php pack與unpack 摸板字符字符含義簡介】相關(guān)文章:

        關(guān)于php去除字符串中空字符的常用方法09-14

        php字符串處理函數(shù)大全08-21

        《PHP字符串操作》收集整理08-08

        Dreamweaver插入特殊字符的方法06-12

        c語言字符數(shù)組使用方法10-14

        關(guān)于php中的一個(gè)中文字符串截取函數(shù)07-15

        word文字符號輸入類技巧08-30

        電氣施工識圖:設(shè)備文字符號說明08-09

        JAVA十六進(jìn)制與字符串的轉(zhuǎn)換方法09-17

        sun認(rèn)證java關(guān)于字符串處理技巧06-01

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 偷窥国产女洗浴在线观看视频 | 亚洲国产每日更新 | 一级特黄日本少妇 | 最新久久精品免费视频 | 最新精品国产免费 | 在线观看免费视频色 |