Search Results

  1. Can be used to split a string into smaller chunks which is useful for e.g. converting base64_encode () output to match RFC 2045 semantics. It inserts separator every length characters.

    • Sprintf

      Sprintf - PHP: chunk_split - Manual

    • Printf

      Printf - PHP: chunk_split - Manual

    • Fprintf

      Parameters ¶ stream A file system pointer resource that is...

    • Vsprintf

      Vsprintf - PHP: chunk_split - Manual

    • Vfprintf

      Parameters ¶ stream format The format string is composed of...

    • Htmlspecialchars

      Convert special characters to HTML entities

    • MD5

      md5 (PHP 4, PHP 5, PHP 7, PHP 8) md5 — Calculate the md5...

    • Substr

      Parameters ¶ string The input string. offset If offset is...

  2. Definition and Usage The chunk_split () function splits a string into a series of smaller parts. Note: This function does not alter the original string.

    • Required. Specifies the string to split
  3. Jul 11, 2025 · Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

  4. Oct 3, 2024 · The chunk_split() function is used to split a string into a series of smaller chunks.

  5. The chunk_split function splits a string into chunks of a specified length and adds a specified separator between them. Let's look at the features of its work with examples.

  6. Sep 2, 2025 · In PHP, there are several functions available for splitting strings, and one of them is the chunk_split() function. This function splits a string into smaller chunks of a specified length and ...

  7. People also ask

  8. The chunk_split() function is used to split a string into smaller chunks. The syntax of the chunk_split() function is as follows: