If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Sergio (o per chi lo sa) se vado nella homepage del sito bodyweb, vediamo in anteprima gli articoli giusto?
Questi articoli però non sono completi, ad un certo punto vengono messi i puntini
Come si fa? In php? Mi spiegheresti come?
Grazie
Originariamente Scritto da paolo79
max_79 da quando l'ho conosciuto di persona invece mi sta sul ***** perchè è troppo grosso
2) Usi una variabile che contiene il numero di caratteri massimo vualizzabile, es $car=500;
3) Metti l'articolo in una variabile stringa $stringarticolo o in un array.....
3) C'è una funzione che devi andare a vedre sul manuale del PHP perchè tutto a memoria non ricordo. Ti permette di contare i caratteri di una variabile o di un array, stampi solo quelli che vuoi tu con un ciclo "while" che fai durare $car volte. poi aggiungi i punti alla variabile e fai stampare il contenuto.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Commenta