Sabtu, 24 Agustus 2013

PHP Indonesia - Facebook: [TANYA] sebenernya, lebih baik yang mana ? 1 atau ...

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/ 
[TANYA] sebenernya, lebih baik yang mana ? 1 atau ...
Aug 25th 2013, 03:27, by Try Fathur Rachman

Try Fathur Rachman 3:27am Aug 25
[TANYA] sebenernya, lebih baik yang mana ? 1 atau 2?
1. if (kondisi)
{
return TRUE
}
else
{
return FALSE
}

2. if (kondisi)
{
return TRUE
}

return FALSE

Terima Kasih :)

Budi Sasongko 3:29am Aug 25
1

Try Fathur Rachman 3:30am Aug 25
oke.. :)

Budi Sasongko 3:33am Aug 25
yg lbh parnoo lg:
if (kondisi)
{
return TRUE
}
if (!kondisi)
{
return FALSE
}

Try Fathur Rachman 3:34am Aug 25
logic nya bener gan, tapi ribet :v

Stefanus Diptya Adeshya Anindito 3:37am Aug 25
2. Klo code lo cuman hitungan ratusan line itu blm keliatan gunanya tpi klo udah ribuan code lo bkal ribet.

Gw pnya solusi lain yg lbih sederhana.

return (kondisi) ? true : false;

Atau cuman

return (kondisi);

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