You are here: Re: echo binary « PHP Programming Language « IT news, forums, messages
Re: echo binary

Posted by Lisa Pearlson on 10/18/75 11:24

hmm, weird, echo(00) echoes '0';

Many shell scripts written in php also exit like this:

exit(0);

But that also prints the ascii character '0';
weird.

I think echo pack('C', 0) should work..

Lisa

"Christopher Story" <ke6rwj@spam-eater-remove-me-msn.com> wrote in message
news:jeXMe.7335$F_7.5240@fe06.lga...
>
> "Lisa Pearlson" <no@spam.plz> wrote in message
> news:43043869$0$5028$e4fe514c@dreader11.news.xs4all.nl...
>> how can I echo the decimal number 0 instead of the ascii "0" ?
>> passthru can do it in response to a shell function. Is there another way?
>> does echo pack("C", 0) do it?
>>
>> Lisa
>
> echo char(00);
>
> will do it....
>
> chris
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация