*strong text*what i want to do is from my breakline content to one line paragraph
example my var_dump result:
string(212) “(73857,”2012-02-02 03:18:44″,”TXT”,60143836234);”
string(122) “(73858,”2012-02-02 03:20:08″,”WAP”,60143836234);”
string(211) “(73859,”2012-02-02 08:21:47″,”TXT”,60163348563,);”
What i want to become:
string(555) “(73857,”2012-02-02 03:18:44″,”TXT”,60143836234);(73858,”2012-02-02 03:20:08″,”WAP”,60143836234);(73859,”2012-02-02 08:21:47″,”TXT”,60163348563,);”
update (here is my code, $i is the line break records, if I able to make the breakline to one line, i will put in a new file )
foreach($get_line_feed_content as $i) {
$add_special_char = "(".$i.");";
var_dump($add_special_char);
if(!empty($i)){
$stringData = $final_content;
fwrite($save, $stringData);
fclose($save);
}
}
any idea?
Thank and highly appreciated your answer
Did you just want to glue the strings together? I don’t see any line breaks from your dumps.
If that’s the case, just do:
If, however, each line is represented as an element in an array:
With your most recent update, this is what I would do: