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/ | |
 | 300+% Conversion Increase
Learn how startups and leading businesses alike are getting huge results using web personalization and behavioral targeting the easy way in this ebook. Get it now!  | From our sponsors | | |
[ASK] Kira2 yang mana yang lebih evisien dan lebih... Sep 27th 2013, 13:07, by Samad KeDai | [ASK] Kira2 yang mana yang lebih evisien dan lebih baik!! case 1 : $data=$_POST['data']; $data=str_replace("/","-",$data); kalo di bandingkan dengan yang ini $data=str_replace("/","-",$_POST['data']);
case 2 : $result=msyql_query("select * from table"); while ($fetch=mysql_fetch_array($query)){ echo "bla..bla..bla";} dibandingkan dengan yang ini $query="select * from table"; $result=mysql_query($query); while($fetch=mysql_fetch_array($result)){ echo "bla..bla..bla";} |
| | case by case, [1]jika variable hanya digunakan satu kali, lebih baik hindari; jika [2] query-nya singkat dan tidak 'njimet' bisa dimasukkan langsung [3] utk alasan tracing/debuging/keterbacaan code bisa dipisahkan [4] ..dll,dsb,dst.. cmiiw ^_^V | | |
|
Tidak ada komentar:
Posting Komentar