Search This Blog

Tuesday, July 26, 2011

How to use the implode function?

The implode function is not worked!


I want to show the string as follows;


id-101-102-103-104-105





$handle = fopen($_FILES['file']['tmp_name'], "r");
while(!feof($handle)) {
$data = fgets($handle);
$listing = explode(",", $data);
$id = $listing[0];
$name=$listing[1]; // this is second column data.
$telephone = $listing[2];
$email = $listing[3];

$id1 = implode("-,$id);

echo "id = " . $id . "";



http://bit.ly/nnALY8

No comments:

Post a Comment