<?php
$dir = '../../../kindle/K';
$files = scandir($dir);
$i = 1;
foreach ($files as $key=>$value) {
if (preg_match('/^[a-z]/i', $value)) {
echo $i++ . "\t" . $value . "<br/>";
}
}
?>
Subscribe to:
Post Comments (Atom)
here docs
$x = <<<THE_END PHP stands for "PHP: Hypertext Preprocessor". The acronym "PHP" is therefore, usually referre...
-
Function returning reference $r = 10; $ref = & funcByRef("r"); $ref = 12; print $r; function &funcByRef($v) { return $...
-
<?php $file_reader = fopen("sample_text.txt", "r"); while(!feof($file_reader)) { echo fgets($file_reader) . "...
-
<?php $phpVersion = phpversion(); $phpVersionCompare = "5.6.8"; echo "phpversion:" . $phpVersion . "<br/...
No comments:
Post a Comment