PHP keempat

Document Sample
PHP keempat
Shared by: jatmiko indriyanto
Categories
Tags
Stats
views:
87
posted:
2/12/2010
language:
Indonesian
pages:
3
2/10/2010









PHP Function Fungsi Berhubungan dengan

Libraries Variabel, Konstanta, Tipe Data





Jatmiko Indriyanto

Jatmikocollege.wordpress.com

Jatmikoindri@yahoo.com

YM : Jatmiko_idr









Fungsi Variable dan Tipe Data Operator . Dan .=



gettype (variable)

• is_array(variable)

• is_bool • Operator titik (.) digunakan untuk

• is_double menggabungkan dua buah string

• is_float • Operator .= untuk operasi penugasan

• is_int • Contoh:

• is_numeric “Pemrograman” . “PHP”

• is_object $kata .= “Pagi” ($kata = $kata . ”Pagi”)

• is_resource

• is_string









Menampilkan String Fungsi String



• Bisa menggunakan: • strlen

1. print • strtoupper

2. printf • ucfirst

3. echo • ucwords

• Penentu format pada prinft(), didahului • substr

dengan % • substr_count

- d = bilangan bulat • strpos

- f = bilangan double (real) • chr

- s = string • count_chars

- b = bilangan biner bulat • strcmp

- o = bilangan oktet (berbasis 8) • etc

- x = bilangan heksadesimal









1

2/10/2010









Fungsi Waktu





• checkdate(bulan, tanggal, tahun)

• date(stringformat)

Fungsi Berhubungan • microtime()

dengan Waktu • time()









Konsep Operasi File





1. Membuka file

Fungsi Berhubungan 2. Memanipulasi file

dengan File 3. Menutup file









Fungsi File



• fopen

• fclose Semua Fungsi plus

• fputs Penjelasan Lengkap Ada

• fgets di PHP Manual!

• fgetc

• feof

• fseek

• rewind

• ftel

• fpassthru









2

2/10/2010









Latihan Referensi



1. Mehdi Achour et al, PHP Manual, the PHP Documentation

• Pelajari berbagai fungsi yang tersedia di PHP Group, 2008

2. Janet Valade, PHP & MySQL for Dummies 3rd Edition,

melalui PHP Manual (php_manual_en.chm)

Wiley Publishing , 2006

3. Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre,

• Coba setiap contoh code yang ada di PHP Programming PHP, Oreilly, 2006

Manual untuk memahami penggunaan dari 4. Lynn Beighley and Michael Morrison, Head First PHP &

fungsi-fungsi tersebut MySQL,Oreilly , 2008

5. Learning PHP and MySQL 2nd Edition, Oreilly, 2007

6. Jay Greenspan and Brad Bulger, MySQL/PHP Database

Applications, M&T Books , 2001

7. Abdul Kadir, Dasar Pemrograman Web Dinamis

Menggunakan PHP Edisi Revisi, Penerbit Andi, 2008

From Romi Satria Wahono









3


Share This Document


Related docs
Other docs by jatmiko indriy...
fourthDelphi
Views: 61  |  Downloads: 28
PHP keempat
Views: 87  |  Downloads: 12
php kelima
Views: 87  |  Downloads: 12
mysql delapan
Views: 76  |  Downloads: 4
intro 3d game
Views: 42  |  Downloads: 4
flash lima
Views: 43  |  Downloads: 3
FirstDelphi
Views: 170  |  Downloads: 85
php ketiga, jatmiko i
Views: 51  |  Downloads: 4
flash enam
Views: 38  |  Downloads: 3
sixthDelphi
Views: 94  |  Downloads: 24
by registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!