PHP > Sort array by keys
Monday, July 21st, 2008uksort($tagList, 'strnatcasecmp');

uksort($tagList, 'strnatcasecmp');
foreach ($aline as $val) {
$bline[] = iconv("ISO-8859-1","UTF-8",$val);
}
<h2>Check file</h2> <form name="checkfile" method="POST" action="<?=$PHP_SELF?>" enctype="multipart/form-data" > <input type="hidden" name="max_file_size" value="8000000" /> <input type="file" name="file" id="c_f"
[...more...]
$string2 =
ereg_replace('<font size=.+4.>+ ?<b class=.bltxt.>(.*)</b> ?</font>'
[...more...] Au weia, Jahre kein Unix gesehen und dann das...
Mache eine Sicherheitskopie von allen html files in einem Verzeichnis, natürlich mit Unterverzeichnissen, aber nimm nicht den ganzen anderen Müll mit... vielleicht geht es ja auch schneller, abe
[...more...]
function cleanString($filename) {
return ereg_replace("[^-[:alnum:].+]","",$filename);
}
oder, um auch z.B. chines $list_ignore = array
('.','..','images','Thumbs.db','index.php','.htaccess','.htpasswd');
$handle=opendir ('.');
while (false !== ($file = readdir ($handle))) {
if (!in_array($file,$list_ignore))
[...more...] <?PHP
function string2array ($string, $template){
#search defined dividers
preg_match_all ("|%(.+)%|U", $template, $template_matches);
[...more...] function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
[...more...]