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

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Hope This Helps - PHP</title>
    <link>http://hope-this-helps.de/serendipity/</link>
    <description>IT Tipps</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.6 - http://www.s9y.org/</generator>
    
    

<item>
    <title>PHP Funktion um Strings zu zerlegen</title>
    <link>http://hope-this-helps.de/serendipity/archives/251-PHP-Funktion-um-Strings-zu-zerlegen.html</link>
            <category>PHP</category>
            <category>Scripts + Code Schnipsel</category>
    
    <comments>http://hope-this-helps.de/serendipity/archives/251-PHP-Funktion-um-Strings-zu-zerlegen.html#comments</comments>
    <wfw:comment>http://hope-this-helps.de/serendipity/wfwcomment.php?cid=251</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://hope-this-helps.de/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=251</wfw:commentRss>
    

    <author>nospam@example.com (Christopher Pope)</author>
    <content:encoded>
    &lt;strong&gt;Beschreibung :&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Funktion findet ein bestimmtes Vorkommen eines vorgegebenen Suchstring in einem anderen String&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Beispiel :&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
$Text = &quot;Ihre Artikelnummer ist 1212121212 der Bestellwert ...&quot;&lt;br /&gt;
$TXT = FindInformationInString($Text,&#039;ist &#039;,&#039;der &#039;); &lt;br /&gt;
&lt;br /&gt;
echo $TXT; // liefert &quot;1212121212&quot; zurück&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Funktion :&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
function FindInformationInString($String,$Start,$Ende) {&lt;br /&gt;
    // $String = Der String in dem eine Zeichenkette gesucht werden soll&lt;br /&gt;
    // $Start = Nach welchem String soll gesucht werden &lt;br /&gt;
    // $Ende = Mit welchen Zeichen hört der gesuchte String auf&lt;br /&gt;
    $FI_STR = stripos($String,$Start);&lt;br /&gt;
    If ($FI_STR &gt; 0){&lt;br /&gt;
        $FI_END = stripos($String,$Ende,$FI_STR);&lt;br /&gt;
        $FI_Len = $FI_END - $FI_STR;&lt;br /&gt;
        $FI_STRING = substr($String,$FI_STR,$FI_Len);&lt;br /&gt;
        $FI_STRING = Str_replace($Start,&#039;&#039;,$FI_STRING);     // Start String aus Ergebnis entfernen&lt;br /&gt;
        $FI_STRING = trim(strip_tags($FI_STRING));            // entfernen der HTML Tags&lt;br /&gt;
        If (empty($FI_STRING)) {&lt;br /&gt;
            return &#039;n/a&#039;;&lt;br /&gt;
            } else {&lt;br /&gt;
            return $FI_STRING;&lt;br /&gt;
            }&lt;br /&gt;
        }else{&lt;br /&gt;
        return &#039;n/a&#039;;&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Verwendete PHP Funktionen : &lt;/strong&gt; &lt;a href=&quot;http://php.net/manual/de/function.strip-tags.php&quot; title=&quot;strip_tags&quot; target=&quot;_blank&quot;&gt;strip_tags&lt;/a&gt; | &lt;a href=&quot;http://www.php.net/manual/de/function.substr.php&quot; title=&quot;substr&quot; target=&quot;_blank&quot;&gt;substr&lt;/a&gt; | &lt;a href=&quot;http://www.php.net/manual/de/function.stripos.php&quot; title=&quot;stripos&quot; target=&quot;_blank&quot;&gt;stripos&lt;/a&gt; | &lt;a href=&quot;http://www.php.net/manual/de/function.trim.php&quot; title=&quot;trim&quot; target=&quot;_blank&quot;&gt;trim&lt;/a&gt; | &lt;a href=&quot;http://www.php.net/manual/de/function.str-replace.php&quot; title=&quot;str_replace&quot; target=&quot;_blank&quot;&gt;str_replace&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 14 Nov 2010 10:38:35 +0100</pubDate>
    <guid isPermaLink="false">http://hope-this-helps.de/serendipity/archives/251-guid.html</guid>
    <category>php</category>
<category>scripts + code schnipsel</category>
<category>string</category>
<category>stripos</category>
<category>str_replace</category>
<category>trim</category>
<category>zerlegen</category>

</item>
<item>
    <title>Zahl immer zweistellig angeben - PHP</title>
    <link>http://hope-this-helps.de/serendipity/archives/6-Zahl-immer-zweistellig-angeben-PHP.html</link>
            <category>PHP</category>
    
    <comments>http://hope-this-helps.de/serendipity/archives/6-Zahl-immer-zweistellig-angeben-PHP.html#comments</comments>
    <wfw:comment>http://hope-this-helps.de/serendipity/wfwcomment.php?cid=6</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://hope-this-helps.de/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    

    <author>nospam@example.com (Christopher Pope)</author>
    <content:encoded>
    Sie möchten eine Zahl in PHP immer zweistellig angeben.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;string sprintf ( string $format [, mixed $args [, mixed $... ]] )&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Gibt eine an Hand des Formatierungs-Strings format gebildete Zeichenkette zurück.&lt;br /&gt;
&lt;br /&gt;
Quelle : &lt;a href=&quot;http://de2.php.net/manual/de/function.sprintf.php&quot; title=&quot;http://de2.php.net/manual/de/function.sprintf.php&quot;&gt;http://de2.php.net/manual/de/function.sprintf.php&lt;/a&gt; 
    </content:encoded>

    <pubDate>Thu, 04 Feb 2010 13:59:48 +0100</pubDate>
    <guid isPermaLink="false">http://hope-this-helps.de/serendipity/archives/6-guid.html</guid>
    <category>php</category>
<category>programmieren</category>
<category>sprintf</category>
<category>zahl</category>
<category>zweistellig</category>

</item>
<item>
    <title>XT:Commerce v3.0.4 SP2.1 TAG CLOUD - PHP</title>
    <link>http://hope-this-helps.de/serendipity/archives/5-XTCommerce-v3.0.4-SP2.1-TAG-CLOUD-PHP.html</link>
            <category>PHP</category>
            <category>Scripts + Code Schnipsel</category>
    
    <comments>http://hope-this-helps.de/serendipity/archives/5-XTCommerce-v3.0.4-SP2.1-TAG-CLOUD-PHP.html#comments</comments>
    <wfw:comment>http://hope-this-helps.de/serendipity/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://hope-this-helps.de/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Christopher Pope)</author>
    <content:encoded>
    Hier eine kleine TAG Cloud für XT:COMMERCE 3.0.4 SP2.1&lt;br /&gt;
&lt;br /&gt;
Legt eine Datei an die &lt;strong&gt;cloud_DB.php&lt;/strong&gt; lautet diese muss direkt im Shop Verzeichniss liegen !&lt;br /&gt;
&lt;br /&gt;
Kopiert folgende Codezeilen in diese Datei&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size:11px;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;// Konfiguration&lt;br /&gt;
$MIN_FONT_SIZE = &#039;10&#039;; // minimale Schriftgröße&lt;br /&gt;
$MAX_FONT_SIZE = &#039;20&#039;; // maximale schriftgröße&lt;br /&gt;
$MAXRESULT = 60;    // maximal angezeigt wörter&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;// Ab hier nichts mehr ändern esseidenn man kennt sich aus&lt;br /&gt;
$Query = xtc_db_query(&#039;Select * from&lt;br /&gt;
`categories` LEFT JOIN `categories_description`&lt;br /&gt;
ON&lt;br /&gt;
`categories`.`categories_id` = `categories_description`.`categories_id`&lt;br /&gt;
WHERE&lt;br /&gt;
`categories`.`categories_status` != 0&lt;br /&gt;
&#039;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;while ($line = xtc_db_fetch_array($Query)){&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$cPath_new=xtc_category_link($line[&#039;categories_id&#039;],$line[&#039;categories_name&#039;]);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$href=xtc_href_link(FILENAME_DEFAULT, $cPath_new);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;&lt;br /&gt;
$array[] = &#039;&amp;lt;a class=&quot;tag_link&quot;&lt;br /&gt;
style=&quot;font-size:&#039;.rand($MIN_FONT_SIZE,$MAX_FONT_SIZE). &#039;px&quot;&lt;br /&gt;
href=&quot;&#039;.$href.&#039;&quot;&lt;br /&gt;
title=&quot;&#039;.$line[&#039;categories_heading_title&#039;].&#039;&quot;&amp;gt;&#039;.$line[&#039;categories_name&#039;].&lt;br /&gt;
&#039;&amp;lt;/a&amp;gt;&#039;.&quot;\n&quot;;&lt;br /&gt;
&lt;br /&gt;
}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;shuffle($array); &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;foreach ($array as $key =&amp;gt; $val)&lt;br /&gt;
{&lt;br /&gt;
If ($Z &amp;lt; $MAXRESULT){&lt;br /&gt;
echo &quot;$val &quot;;&lt;br /&gt;
}&lt;br /&gt;
$Z++;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Diese Datei könnt ihr mit &lt;strong&gt;include(”cloud_db.php”); &lt;/strong&gt;in die &lt;strong&gt;Index.html &lt;/strong&gt;des Templates einbinden.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;a.tag_link&lt;/strong&gt; fürs &lt;strong&gt;CSS &lt;/strong&gt;zum formatieren.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 04 Feb 2010 13:52:00 +0100</pubDate>
    <guid isPermaLink="false">http://hope-this-helps.de/serendipity/archives/5-guid.html</guid>
    <category>php</category>
<category>programmieren</category>
<category>scripts + code schnipsel</category>
<category>tag cloud</category>

</item>

</channel>
</rss>
