PHP Web Developer.

กรกฎาคม 20, 2012

About array

Filed under: PHP — Prajak @ 1:31 pm

======= Code =======
<?php
$params = array(
‘A’ => 10,
‘B’ => 20,
‘C’ => 30,
‘D’ => 40,
‘E’ => 50,
‘F’ => 60,
‘G’ => 70
);

var_dump($params); exit;
}

======= Display =======
array
‘A’ => int 10
‘B’ => int 20
‘C’ => int 30
‘D’ => int 40
‘E’ => int 50
‘F’ => int 60
‘G’ => int 70

======= Code =======
<?php
$params = array(10, 20, 30, 40, 50, 60, 70);

var_dump($params); exit;
?>

======= Display =======
array
0 => int 10
1 => int 20
2 => int 30
3 => int 40
4 => int 50
5 => int 60
6 => int 70

ให้ความเห็น »

ยังไม่มีความเห็น

RSS feed for comments on this post. TrackBack URI

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

บลอกที่ WordPress.com .

%d bloggers like this: