![]() |
One more quick php question
Im using the following on a page to limit the amount of characters are displayed for a products description:
Quote:
Quote:
... More With a clickable link using a link setup this way: domain.com/page.php?id=$ID How would I go about editing the code I'm currently using to facilitate that? I have tried adding the HTML code next to the periods but, that didnt work for some reason :Oh crap Should I be using something different entirely? Any help, pointers or advice would be appreciated. Thanks :thumbsup |
not sure why you have that broken down into 12 lines, nonetheless...
Code:
<?php Function method: Code:
<?php Granted, this is a really archaic way of handling it given the fact you should be truncating by whole words, not single characters. The above example illustrates why (returned string is for the function above is "This is a test of the emergency broadcast system. ..." |
How do I change that to truncate by words instead of characters but still keep the character count as close to 100 as possible?
|
Code:
<?php |
All times are GMT -7. The time now is 03:08 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc