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

Recommended Answers

All 2 Replies

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 meeting, networking, learning, and sharing knowledge.