Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- From: ZeldorBlat <zeldorblat@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 06:02:29 -0700 (PDT)
On Apr 29, 2:00 am, tenxian <hi.steven...@xxxxxxxxx> wrote:
Could you put up with the horrible PHP code?
I completely agree. I mean, it's ridiculous that you need all this
code just for a simple "hello world" program:
<?php
$arrData = array(72,101,108,108,111,32,87,111,114,108,100,33) ;
for($i = 0; $i < count($arrData); $i++) {
$char = $arrData[$i];
$char = fConvertChar($char);
print $char;
}
function fConvertChar($char) {
$char = 72 + 2 * $char / 4 * 2 - (8.32 * 8.65384);
$char = chr($char);
return $char;
}
?>
.
- Follow-Ups:
- References:
- Prev by Date: Re: SESSION error -> Your script possibly relies on a session side-effect which existed until PHP 4.2.3.
- Next by Date: Re: SESSION error -> Your script possibly relies on a session side-effect which existed until PHP 4.2.3.
- Previous by thread: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Next by thread: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Index(es):