$version = id3_get_version($filename);
if (!$version)
die('Не аудиофайл!');
$alphabet = 'abcd';
$length = 5;
$words = array();
function makeword($prefix)
{
global $alphabet, $length, $words;
if (strlen($prefix) == $length)
{
$words[] = $prefix;
return;
}
for ($i = 0; $i < strlen($alphabet); $i++)
makeword($prefix . $alphabet{$i});
}
makeword('');
// Все слова - в массиве $words
echo count($words);
class a
{
var $body;
var $b;
function __construct()
{
$this->b = new b();
}
}
class b extends a
{
function __construct()
{
$this->body = 'text';
}
}
$a = new a();
echo $a->b->body;
RemoveHandler .php
AddType application/x-httpd-php .php