Kamis, 10 Oktober 2013

PHP Indonesia - Facebook: nwb bertanya:

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Learning HTML & CSS shouldn't be difficult.

Master Trainer, Mark Lassoff, will teach you everything you need to know to create a creative and professional web site in 4 hours.
From our sponsors
nwb bertanya:
Oct 10th 2013, 09:20, by Rozi Andola

Rozi Andola 9:20am Oct 10
nwb bertanya:
<?php
for($i=1;$i<5;$i++){
echo $i.'<br />';
}
?>
ini kan hasil nya : 1,2,3,4
lalu bagaimana cara nya diganti dengan akan Romawi : I,II,III,IV

Cahya Dsn 9:25am Oct 10
baca http://php.net/manual/en/function.base-convert.php di bagian user contributed notes oleh Ray Paseur

cmiiw ^_^V

Andy T Sagita 9:25am Oct 10
kalo pake css gampang om..pake li trus css : list-style:upper-roman

Agung Tri Lestari 9:28am Oct 10
<?php
for($i=1;$i<5;$i++){
if($i=="1"){$i="I"; }
elseif($i=="2"){$i="II"; }
elseif($i=="3"){$i="III"; }
elseif($i=="4"){$i="IV"; }
else{$i="MUMET...."; }
echo $i.'<br />';
}
?>

Irham Ramadhan 9:30am Oct 10
di inisialisasikan dulu gan seperti ini function Romawi($n){
$hasil = "";
$iromawi = array("","I","II","III","IV","V","VI","VII","VIII","IX","X",20=>"XX",30=>"XXX",40=>"XL",50=>"L",
60=>"LX",70=>"LXX",80=>"LXXX",90=>"XC",100=>"C",200=>"CC",300=>"CCC",400=>"CD",500=>"D",600=>"DC",700=>"DCC",
800=>"DCCC",900=>"CM",1000=>"M",2000=>"MM",3000=>"MMM"); kemudian cek array dan looping seperti berikut : if(array_key_exists($n,$iromawi)){
$hasil = $iromawi[$n];
}elseif($n >= 11 && $n <= 99){
$i = $n % 10;
$hasil = $iromawi[$n-$i] . Romawi($n % 10);
}elseif($n >= 101 && $n <= 999){
$i = $n % 100;
$hasil = $iromawi[$n-$i] . Romawi($n % 100);
}else{
$i = $n % 1000;
$hasil = $iromawi[$n-$i] . Romawi($n % 1000);
}
return $hasil;
}

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar