is there a function smart substr???
ex:
$string = "this is my string required cutting";
substr($string,0,13); //result: "this is my str"

but it's not good sentence, it should cut like this "this is my"

    [man]wordwrap[/man]. You can figure out the rest from there.
    Or [man]explode[/man]. Tell it where you want cuts to be made, and then put the bits you want back together.

      Write a Reply...