ฟังก์ชัน array_unique()
ลบ element ที่ซ้ำกันออก
ตัวอย่าง
$a = array(0,1,2,3,0,0,0,1,2,3);
$uniqueArray = array_unique($a);
print_r($uniqueArray);
ผลลัพธ์
Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 )
ฟังก์ชัน array_unique()
Moderators: mindphp, ผู้ดูแลกระดาน
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 258 Views
-
Last post by M027
05/09/2015 10:13 am
-
-
ฟังก์ชัน date_sunrise()ดูเวลาพระอาทิตย์ขึ้น และ ฟังก์ชัน date_sunset() ดูเวลาพระอาทิตย์ตก
by Patipat » 22/07/2019 11:07 am » in PHP Knowledge - 0 Replies
- 363 Views
-
Last post by Patipat
22/07/2019 11:07 am
-
-
- 1 Replies
- 344 Views
-
Last post by P'Eak
23/08/2017 9:16 pm
-
- 2 Replies
- 349 Views
-
Last post by Patipat
02/07/2019 8:44 pm
-
- 0 Replies
- 1500 Views
-
Last post by offing
11/12/2014 3:39 pm
-
-
อยากรู้คำอธิบายความหมาย ฟังก์ชั้น C++ คับ
by guyvoy » 27/02/2012 10:03 pm » in Programming - C/C++ & java & Python - 2 Replies
- 3223 Views
-
Last post by touleg
31/05/2012 1:43 pm
-
-
- 2 Replies
- 280 Views
-
Last post by Patipat
02/07/2019 7:04 pm
-
-
ฟังก์ชัน -> get ใช้ดึงค่าพารามิเตอร์ตามที่กำหนด
by Patipat » 03/08/2019 4:39 pm » in Joomla Developing Knowledge - 0 Replies
- 496 Views
-
Last post by Patipat
03/08/2019 4:39 pm
-
Who is online
Users browsing this forum: facebook.com [Crawler] and 5 guests