|
|
|
ต้องการกำหนดตัวแปรจาก Array ครับ (ไม่ต้องการ index จาก array) |
|
|
|
|
|
|
|
Code (PHP)
<?PHP
//$array = Array ( [0] => 10 [1] => 7 [2] => 8 [3] => 9 );
$array = Array ( 0 => '10', 1 => '7', 2 => '8', 3 => '9' );
$val = "";
foreach($array as $result){
$val .= $result;
}
echo $val; // 10789
?>
|
|
|
|
|
Date :
2014-11-12 12:27:47 |
By :
sabaitip |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
$val = implode(',', $array);
|
|
|
|
|
Date :
2014-11-12 13:00:19 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|