Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 12 su 12
  1. #11
    Codice PHP:
    function stringTransform($str,$len) {
        if(
    strlen($str)>$len){
            
    preg_match("/^(?=(.{{$len},}?\b))/s",$str,$chunked); 
            
    $str$chunked[1].'...';
        }
        return 
    $str;
    }
    $testo "

    Opera powers the Web on any device.Surfe the full Web and create dynamic applications using Web technology with Opera 9 for Devices</p>"
    ;
    echo 
    stringTransform($testo,10); 
    Regex by Anakim.

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #12
    se togli il nowrap dal td non tronca le stringhe, ma almeno va a capo...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.