Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7706027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:00:49+00:00 2026-06-01T00:00:49+00:00

* strong text *what i want to do is from my breakline content to

  • 0

*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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:00:50+00:00Added an answer on June 1, 2026 at 12:00 am

    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:

    $finalString = $string1 . $string2 . $string3;
    var_dump($finalString); //Strings should be glued as one.
    

    If, however, each line is represented as an element in an array:

    $stringsArray = array('string1', 'string2', 'string3');
    $finalString = implode("", $stringsArray);
    var_dump($finalString);
    

    With your most recent update, this is what I would do:

    $newString = '';
    
    foreach($get_line_feed_content as $i) { 
      $newString  .= "(".$i.");"; //concatenate
    
      var_dump($newString); //You will get a lot of dumps and with each dump, a new string should be appended to it. 
    
        if(!empty($i)){ 
            fwrite($save, $newString); 
            fclose($save); 
        } 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the HTML result from RadGrid - for example: RADEDITOR result: <strong>Testing</strong> In
strong text I have grids showing to user and want to not allow sorting
I want to do something like this: [Display(Name = Plain text. <span class=\red strong\>Red
I want to find all img tags in a string of text and put
I have a string of text like so: var foo = FooBar; I want
I want to convert a string to formatted text in C# in WPF application,
I want to bind a string value to a text box but only if
i have a text file with string abcdef I want to search for the
i want a regular expression to validate string to have only text,operators and these
I want to compare an string which is in clear text in the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.