<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: jacinmontava: texto</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Rellenar cadena de texto</title>
        <link>http://www.posteet.com/view/628</link>
        <description>
        <![CDATA[<pre>&lt;?php
// str_pad(texto,longitud total,&quot;caracter&quot;,posicion del relleno)

//la posicion del relleno puede ser:
//STR_PAD_RIGHT: se rellenara por la derecha
//STR_PAD_LEFT: se rellenara por la izquierda
//STR_PAD_BOTH: se rellenara por ambos lados

//ejemplo
$cadena = &quot;hola&quot;;
str_pad($cadena,7,&quot;.&quot;,STR_PAD_LEFT) /// esto devuelve  ...hola
//////////////////////////////////////////////////////////////////</pre> <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/texto">[texto]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Wed, 26 Dec 2007 15:16:49 +0000</pubDate>

            <category>php</category>
            <category>texto</category>
    
    </item>

  
    <item>
        <title>Acortar texto con php</title>
        <link>http://www.posteet.com/view/624</link>
        <description>
        <![CDATA[<pre>function acortar($texto,$longitud)
{ 
   $texto_partido = substr($texto,0,$longitud);

   /// Condición que comprueba la longitud del texto para devolverlo con ... o entero
   if (strlen($texto) &gt; $longitud)
      return $texto_partido.&quot;...&quot;;
   else
      return $texto;  
}</pre> <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/texto">[texto]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Wed, 26 Dec 2007 14:41:34 +0000</pubDate>

            <category>php</category>
            <category>texto</category>
    
    </item>


</channel>
</rss>
