<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.plecko.hr/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://wiki.plecko.hr/feed.php">
        <title>Eureka Moment development:php</title>
        <description></description>
        <link>https://wiki.plecko.hr/</link>
        <image rdf:resource="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico" />
       <dc:date>2026-05-09T15:36:37+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=development:php:cli_cursor&amp;rev=1572509040&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=development:php:date&amp;rev=1572509040&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=development:php:regex&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=development:php:start&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=development:php:who_included_me&amp;rev=1572509100&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico">
        <title>Eureka Moment</title>
        <link>https://wiki.plecko.hr/</link>
        <url>https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=development:php:cli_cursor&amp;rev=1572509040&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:04:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>development:php:cli_cursor</title>
        <link>https://wiki.plecko.hr/doku.php?id=development:php:cli_cursor&amp;rev=1572509040&amp;do=diff</link>
        <description>Cursor controll in PHP cli scripts

Controll cursor in CLI scripts by echoing ANSI characters

echo &quot;\033[100D&quot;;

Many computer terminals and terminal emulators support colour and cursor control through a system of escape sequences. One such standard is commonly referred to as ANSI Colour. Several terminal specifications are based on the ANSI colour standard, including VT100.</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=development:php:date&amp;rev=1572509040&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:04:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>development:php:date</title>
        <link>https://wiki.plecko.hr/doku.php?id=development:php:date&amp;rev=1572509040&amp;do=diff</link>
        <description>PHP datetime


$EndDate = date_create(%MYSQL DATETIME FORMAT%);
date_add($EndDate,new DateInterval('P7D')); //Add 7 days
$Now = date_create(date('Y-m-d H:i:s'));
//$DiffDate = date_diff($Now,$EndDate); //Returns larger-than-zero integer
//echo $DiffDate-&gt;format('%d');
if ($EndDate&gt;$Now) {
    $Larger=true;
} else {
    $Larger=false;
}</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=development:php:regex&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>development:php:regex</title>
        <link>https://wiki.plecko.hr/doku.php?id=development:php:regex&amp;rev=1572509100&amp;do=diff</link>
        <description>Split string using RegEx

$cols=preg_split('/(?&lt;=&quot;),(?=&quot;)/', trim($row));
// Loop through items
foreach ($cols as $col) {
 echo $col;
}


make sure to add / to the beginning and the end of your RegEx expression</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=development:php:start&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>development:php:start</title>
        <link>https://wiki.plecko.hr/doku.php?id=development:php:start&amp;rev=1572509100&amp;do=diff</link>
        <description>PHP




	* Cursor controll in PHP cli scripts
	* PHP datetime
	* Split string using RegEx
	* Which PHP page included me?</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=development:php:who_included_me&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>development:php:who_included_me</title>
        <link>https://wiki.plecko.hr/doku.php?id=development:php:who_included_me&amp;rev=1572509100&amp;do=diff</link>
        <description>Which PHP page included me?


$fileList = get_included_files();
$topMost = $fileList[0];
if ($topMost == __FILE__) echo 'no parents';
else echo &quot;parent is $topMost&quot;;


$caller_tmp=explode(&quot;/&quot;,__FILE__);$caller=end($caller_tmp);</description>
    </item>
</rdf:RDF>
