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/ | |
|
nanya gan, kalau bilangan yang dimulai dari angka ... Nov 12th 2013, 16:30, by Dwi Manik | nanya gan, kalau bilangan yang dimulai dari angka 00 itu bilangan tipe apa ya? gimana bikinnya? |
| | tipe string... hehehe |
| | tipe integer tp di tampilkan pake sprintf |
| | ^ contoh code nya gan |
| | sprintf("%2s", $no); |
| | ada yang tau gimana caranya biar 00+1 hasilnya 01 (bukan 1) ? |
| | int(str)+1; | | |
|
Tidak ada komentar:
Posting Komentar