Skip to content

How to echo only certain character number in PHP?

$temp = substr($temp, 0, 5);
echo "$temp...";
See also  Python code snippet - How to get all links from a website beautifulsoup?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.