I want to limit the length of text shown in php. What is the code in php? But i want to keep the full of text in database.
cliffcc
0
Junior Poster
Recommended Answers
Jump to PostHi cliffc,
Say you have a string called $fulltext, that is the full text string and you only want to display up to 20 chars of it to the user at the current time, then use the following code :
<?php $fulltext = "This is the …
All 2 Replies
cuonic
karthik_ppts
commented:
useful
+4
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.