Splitting a string

Discussion in 'PHP' started by egdcltd, Aug 29, 2006.

  1. #1
    Is there any way of splitting a string, if it's over a defined length, into two or more smaller strings?
     
    egdcltd, Aug 29, 2006 IP
  2. mariush

    mariush Peon

    Messages:
    562
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something close to what you probably want exists, I'm using it in my projects :

    http://ro.php.net/manual/en/function.wordwrap.php

    (ps. ignore the "ro" in the url, it should give you the info in english)

    ps2. heh, i must be really bored today, posted about 10 posts in this hours.
     
    mariush, Aug 29, 2006 IP
  3. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, yes, I think that's what I was after. I'll have a look through it.
     
    egdcltd, Aug 29, 2006 IP