Nice things in PHP 5.3

echo __DIR__;

$date = date_create_from_format(‘y-m-d’, ’05-10-12′);
var_dump(date_format($date, ‘F d, Y’));

 

Dude, where is my code?
stream_resolve_include_path(“PEAR.php”);

$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(‘.’));
$regx = new RegexIterator($it, ‘/^.+\.php$/i’, RecursiveRegexIterator::GET_MATCH);
foreach($regx as $file){
echo $file[0]. “\n”;
}

 

Posted in php

Leave a Reply

Your email address will not be published. Required fields are marked *