<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.startupcto.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.startupcto.com/feed.php">
        <title>StartupCTO backend-tech:php:favorite-php-snippets</title>
        <description></description>
        <link>https://www.startupcto.com/</link>
        <image rdf:resource="https://www.startupcto.com/lib/tpl/scto/images/favicon.ico" />
       <dc:date>2026-04-27T20:52:25+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.startupcto.com/backend-tech/php/favorite-php-snippets/itrunc?rev=1759744947"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.startupcto.com/lib/tpl/scto/images/favicon.ico">
        <title>StartupCTO</title>
        <link>https://www.startupcto.com/</link>
        <url>https://www.startupcto.com/lib/tpl/scto/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.startupcto.com/backend-tech/php/favorite-php-snippets/itrunc?rev=1759744947">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-06T10:02:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>String Truncation - iTrunc()</title>
        <link>https://www.startupcto.com/backend-tech/php/favorite-php-snippets/itrunc?rev=1759744947</link>
        <description>String Truncation - iTrunc()

A great string truncation function, originally from FeedCreator  (GPL).


/**
 * Truncates a string to a certain length at the most sensible point.
 * First, if there's a '.' character near the end of the string, the string is truncated after this character.
 * If there is no '.', the string is truncated after the last ' ' character.
 * If the string is truncated, &quot; ...&quot; is appended.
 * If the string is already shorter than $length, it is returned unchanged.
 *
 * @…</description>
    </item>
</rdf:RDF>
