I need to display a large text into starting line of the text and ...............then.please help me.

Recommended Answers

Can you give an example?

Jump to Post

All 2 Replies

Can you give an example?

Try this

<?php
$yourString = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vulputate, purus mollis volutpat faucibus, velit ligula egestas neque, ac gravida ante lacus et dolor. Maecenas blandit aliquet sem ac suscipit. Proin nec tortor dui. Sed bibendum mollis elementum.';
$strlimit=100;
echo substr ($yourString,0, $strlimit).' .............';
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.