<?
$name = array( "สมชาย", "สามารถ", "อาทิตย์", "กวี", "นารี", "พิษณุ");
$age = array( "20", "25", "18", "15", "22");
echo "ชื่อ: ".$name[0] . " อายุ: " .$age[0] <br>;
echo "ชื่อ: ".$name[1] . " อายุ: " .$age[1] <br>;
echo "ชื่อ: ".$name[2] . " อายุ: ".$age[2] <br>;
echo "ชื่อ: ".$name[3] . " อายุ: " .$age[3] <br>;
echo "ชื่อ: ".$name[4] . " อายุ: ".$age[4] <br>;
?>
code นี้ผิดตรงไหนค่ะ .. ต้องการให้มันขึ้นบรรทัดใหม่
Moderator: mindphp, ผู้ดูแลกระดาน
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41344
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: code นี้ผิดตรงไหนค่ะ .. ต้องการให้มันขึ้นบรรทัดใหม่
โค้ด: เลือกทั้งหมด
echo "ชื่อ: ".$name[0] . " อายุ: " .$age[0] ." <br/>;
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
Re: code นี้ผิดตรงไหนค่ะ .. ต้องการให้มันขึ้นบรรทัดใหม่
อย่าลืมใส่ " หลัง <br/> เป็น <br/>";
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
-
โพสต์ใหม่ เขียน Code แปลง Code ข้ามภาษา ด้วย OpenAI ChatGPT
โดย noncup302 » 08/02/2023 6:38 pm » ใน Mindphp Videoman - 0 ตอบกลับ
- 3964 แสดง
-
โพสต์ล่าสุด โดย noncup302
08/02/2023 6:38 pm
-
-
- 0 ตอบกลับ
- 2957 แสดง
-
โพสต์ล่าสุด โดย pataponnew
27/05/2021 5:10 pm
-
-
โพสต์ใหม่ การทำ Android เพื่อใช้สแกน QR Code และ Bar Code Reader
โดย rangsan » 28/05/2018 11:19 am » ใน Mobile Application Developing- Android, iOS - 0 ตอบกลับ
- 7963 แสดง
-
โพสต์ล่าสุด โดย rangsan
28/05/2018 11:19 am
-
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 79