|
 |
|
ถามเรื่อง Function ครับ รบกวนชี้แจ้งหน่อยนะครับพี่ๆทุกท่าน |
|
 |
|
|
 |
 |
|
https://www.thaicreate.com/php/php-eregi_replace.html ---->eregi_replace
Code (PHP)
<?php
$day = array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
for($i=0; $i<=sizeof($day); $i++)
echo ($i+1)." = ".$day[$i]."<br>";
?>
|
 |
 |
 |
 |
Date :
2009-07-19 20:01:42 |
By :
kanchen |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
http://th2.php.net/manual/en/function.sizeof.php
|
 |
 |
 |
 |
Date :
2009-07-20 00:17:36 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับผม แต่เรื่อง eregi_replace ก็ยัง งง อยู่ครับ ตรงจุดที่ งง คือ
eregi_replace($pattern,$replacement,$string)
1.$pattern-------->คืออะไรเหอร ครับ หรือทำงานยังไง งับ
2.$replacement--------->คืออะไรเหอร ครับ หรือทำงานยังไง งับ
3.$string----------->คืออะไรเหอร ครับ หรือทำงานยังไง งับ
ปล.ผมแค่อยากรู้ว่า พารามิตเตอร์ ทั้ง3ตัวนี้ทำงานกัน ยัง ไง อะไรประมารนี้ครับ
รบกวนพี่ๆ ที่รู้หรือเคยงาน แนะนำด้วย นะ ครับ(เพราะผมอ่านในลิ้งที่ให้ไปก็ยัง งง อยู่ครับT^T...)รบกวนทีนะครับ
ขอบคุณล่างหน้า ครับ
|
 |
 |
 |
 |
Date :
2009-07-20 10:16:40 |
By :
popnakub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|