Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- From: Captain Paralytic <paul_lautman@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 06:43:28 -0700 (PDT)
On 29 Apr, 13:02, ZeldorBlat <zeldorb...@xxxxxxxxx> wrote:
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;}
?>
Wow, I never realised you could do Hello World without instantiating a
custom class.
.
- Follow-Ups:
- References:
- Prev by Date: Re: getting absolute directory path?
- Next by Date: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- 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):
Relevant Pages
|