Skip to content

Php array жишээ

October 25, 2006

PHP array хэрхэн ашиглах талаар бяцхан жишээ тавьлаа сонирхоно уу… 

$ажилчид_array[0] = “Болор-Эрдэнэ”;
$ажилчид_array[1] = “Ариунаа”;
$ажилчид_array[2] = “Аагий”;
$ажилчид_array[3] = “Ариука”;

echo “Манай хоёр ажилтан”. $ажилчид_array[0] . ” & ” . $ажилчид_array[1];
echo “Үдсэн хоёр ажилтан” . $employee_array[2] . ” & ” . $employee_array[3];

$цалин[“Болор-Эрдэнэ”] = 4000;
$цалин[“Ариунаа”] = 4000;
$цалин[“Аагий”] = 600;
$цалин[“Ариука”] = 0;

echo “Болор-Эрдэний цалин – $” . $цалин[“Болор-Эрдэнэ”] . “”;
echo “Ариуны цалин – $” . $цалин[“Sally”] . “”;
echo “Аагийгийн цалин – $” . $цалин[“Charlie”] . “”;
echo “Ариукагын цалин – $” . $цалин[“Clare”];

One Comment leave one →
  1. puujee permalink
    November 13, 2006 7:26 am

    PHP cod

Leave a Reply

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 / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: