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

  • Home
  • SEARCH
  • 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 998643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:13:46+00:00 2026-05-16T07:13:46+00:00

I have some text which occasionally contains very long strings of characters, which is

  • 0

I have some text which occasionally contains very long strings of characters, which is breaking my CSS.

This is an example:

http://iapps.smartphonesoft.com/php/software_details.php?id=358281487

whereas this one is fine

http://iapps.smartphonesoft.com/php/software_details.php?id=380894729

Is it possible to strip the very long line of *s in the above example down to a manageable length?

The extra complication is that is not always *s that cause the issue, ie in this example it is the = string which is causing the issue.

http://iapps.smartphonesoft.com/php/software_details.php?id=371255483

So I want to write PHP which carries out the function if a single ‘word’ within $description is >= 30 chars long, shrink it down to 30 chars.

All the text is kept within the variable $description

regards,

Greg

  • 1 1 Answer
  • 1 View
  • 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-05-16T07:13:47+00:00Added an answer on May 16, 2026 at 7:13 am

    By default, browsers won’t wrap an extremely long word. You can override this behavior and always wrap, even if you need to break a word, with CSS (no PHP required!)

    The property is word-wrap: break-word; and works in all browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text stored in a variable which contains some HTML. For example,
I have this css http://jsfiddle.net/thiswolf/3GYY4/ and beneath each text input,i want to have some
I have a text which contains hyperlinks, some hyperlinks contain spaces and I want
I have a div which has some text, but according to different situations this
i have some text which is separated by space@ .i displayed this array from
I have some text which I want to have on separate lines. I try
On my page in IE8, I have got some text which gets changed through
I have some text. Is there is any api which can tell me the
I have a edittext in which some text are selected . I want to
I have a JeditorPane which has some text in HTML format. When I execute

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.