ascii2ebcdic

int ascii2ebcdic(string ascii) 

Converts ASCII text to EBCDIC.

Returns:

Converted text

Description:

Converts an ASCII encoded string to its EBCDIC equivalent. EBCDIC is a binary-safe encoding and is available only on EBCDIC-enabled operating systems such as AS/400 and BS2000/OSD.

Version:

Existing since version 3.0.17

See also:

ebcdic2ascii 

Example:

Convert an ASCII string to EBCDIC
echo ascii2ebcdic("Hello World"); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.