|
|
|
ใครพอรู้ Funciton explode หรือ Funciton อื่นๆ ที่จะการข้อมูลชุดนี้บ้างครับ |
|
|
|
|
|
|
|
$datatest = 'a/1,b/2,c/3';
$first = array();
$second = array();
$exp01 = explode(",", $datatest);
foreach($exp01 as $val01){
$exp02 = explode("/", $val01);
array_push($first,$exp02[0]);
array_push($second,$exp02[1]);
}
echo implode(":",$first) . "," . implode("-",$second);
|
|
|
|
|
Date :
2009-02-13 22:15:55 |
By :
plakrim |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณมากๆ ครับ คุณ PlaKriM
|
|
|
|
|
Date :
2009-02-15 11:01:18 |
By :
iyaa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|