Skip to content

How to echo only certain character number in PHP?

$temp = substr($temp, 0, 5);
echo "$temp...";
See also  PHP code snippet - How to check if a url is up ?

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.