"ebcdic2ascii() is an Apache-specific function which is available only on 
EBCDIC based operating systems (OS/390, BS2000)." -php.net/ebcdic

What kind of text??? Usually, the text is in ASCII? Do you want to convert to 
the actual numerical representation (ie A == 0x41)? If so, you can try 
bin2hex(). if you want it in decimal, prolly hexdec() in a foreach on a 
explode("\r\n", chunk_split($whatever, 2))'d bin2hex() string... I say that 
because I think bindec will convert the whole string at once, not char by 

On Thursday 31 October 2002 04:26 pm, Ben Chivers wrote:
> Hi,
> I'm wanting to change a character string from text into ascii code.
> I tried using the function:
> ebcdic2ascii()
> only to find out that it isn't supported with the latest versions of php,
> only version 3.
> I would appreciate any help from anyone with this topic.

Often a non-Christian knows something about the earth, the heavens, and the 
other parts of the world, about the motions and orbits of the stars and even 
their sizes and distances,... and this knowledge he holds with certainty from 
reason and experience. It is thus offensive and disgraceful for an unbeliever 
to hear a Christian talk nonsense about such things, claiming that what he is 
saying is based in Scripture. We should do all that we can to avoid such an 
embarrassing situation, which people see as ignorance in the Christian and 
laugh to scorn.

-Saint Augustine

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to