ebcdic2ascii

int ebcdic2ascii(string ebcdic) 

Converts an EBCDIC string to ASCII.

Returns:

Converted text

Description:

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

Version:

Existing since version 3.0.17

See also:

ascii2ebcdic 

Example:

Convert an EBCDIC string to ASCII
echo ebcdic2ascii("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.