Bütün işaretleri siler, _(alt tire),.(nokta),@(et) hariç. yani maillerde ve metinlerde rahatça kullanabilirsiniz.
function clean_signs($thisvalue) {
    $willchange = array ("!", "\"", "'", ",", "<", ">", "=", "^", "#", "+", "$", "½", "%", "&", "{", "}", "[", "]", "(", ")", "*", "/", "~", "|", ";", "`", "€", "£", "\\" );
    $withthis = "";
    return str_replace ( $willchange, $withthis, strip_tags ( $thisvalue ) );
}
///////////////////////////////////////////////////////////////

Bir dizi içindeki aynı değerleri teke düşürür. Mesela

array (
0=> ahmet
1=>mehmet
2=> ahmet
...

ise iki ahmet değerini tek e düşürür.


function arr_dif($array){
$difs = array();
    foreach($array as $value){
        if (!in_array($value,$difs)){
            $dif_tmp =array($value);
            $difs = array_merge ($difs,$dif_tmp);
        }
    }
return $difs;
}
////////////////////////////////////////////////////////////////////

Üç adet html entities problem çözümü; hepsini aynı anda kullanmak zorunda değilsiniz, hangisi uygunsa; seo yazılımı yazanların kullanabileceği tüm kapitalize harflerini kapsayan 3 fonksiyon.
function general_ent_control($value){
$willchange = array ('\\r','\\n','(', ' ', ')', '&Ccedil;', '&ccdil;', '&lt;', '&gt;', '&amp;', '&quot;', '&nbsp;', '&Ntilde;', '&ntilde;', '&THORN;', '&thorn;', '&Yacute;', '&yacute;', '&yuml;', '&szlig;', '&AElig;', '&Aacute;', '&Acirc;', '&Agrave;', '&Aring;', '&Atilde;', '&Auml;', '&aelig;', '&aacute;', '&acirc;', '&agrave;', '&aring;', '&atilde;', '&auml;', '&ETH;', '&Eacute;', '&Ecirc;', '&Egrave;', '&Euml;', '&eth;', '&eacute;', '&ecirc;', '&egrave;', '&euml;', '&Iacute;', '&Icirc;', '&Igrave;', '&Iuml;', '&iacute;', '&icirc;', '&igrave;', '&iuml;', '&Oacute;', '&Ocirc;', '&Ograve;', '&Oslash;', '&Otilde;', '&Ouml;', '&oacute;', '&ocirc;', '&ograve;', '&oslash;', '&otilde;', '&ouml;', '&Uacute', '&Ucirc;', '&Ugrave;', '&Uuml;', '&uacute;', '&ucirc;', '&ugrave;', '&uuml;', '&reg;', '&plusmn;', '&micro;', '&para;', '&middot;', '&cent;', '&pound;', '&yen;', '¼', '½', '¾', '¹', '²', '³', '&iquest;', '&deg;', '&brvbar;', '&sect;', '&laquo;', '&raquo;' );
                        $withthis = array ('_','_','_', '_', '_', 'C', 'c', '_', '_', '_', '_', '_', 'N', 'n', 'T', 't', 'I', 'i', 'y', 'ss', 'E', 'A', 'A', 'A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'D', 'E', 'E', 'E', 'E', 'f', 'e', 'e', 'e', 'e', 'I', 'I', 'I', 'I', 'i', 'i', 'i', 'i', 'O', 'O', 'O', 'O', 'O', 'O', 'o', 'o', 'o', 'o', 'o', 'o', 'U', 'U', 'U', 'U', 'u', 'u', 'u', 'u', 'R', 't', 'm', 'p', 'm', 'cent', 'Pound', 'Yen', 'frac14', 'frac12', 'frac34', '1', '2', '3', '_', '_', '_', '_', '_', '_' );
$value = str_replace ( $willchange, $withthis, $value );
return $value;
}
function force_ent_control($value){
$force_change = array ('(', ')', '&amp;', '&Ccedil;', '&ccdil;', '&lt;', '&gt;', '&amp;', '&quot;', '&nbsp;', '&Ntilde;', '&ntilde;', '&THORN;', '&thorn;', '&Yacute;', '&yacute;', '&yuml;', '&szlig;', '&AElig;', '&Aacute;', '&Acirc;', '&Agrave;', '&Aring;', '&Atilde;', '&Auml;', '&aelig;', '&aacute;', '&acirc;', '&agrave;', '&aring;', '&atilde;', '&auml;', '&ETH;', '&Eacute;', '&Ecirc;', '&Egrave;', '&Euml;', '&eth;', '&eacute;', '&ecirc;', '&egrave;', '&euml;', '&Iacute;', '&Icirc;', '&Igrave;', '&Iuml;', '&iacute;', '&icirc;', '&igrave;', '&iuml;', '&Oacute;', '&Ocirc;', '&Ograve;', '&Oslash;', '&Otilde;', '&Ouml;', '&oacute;', '&ocirc;', '&ograve;', '&oslash;', '&otilde;', '&ouml;', '&Uacute', '&Ucirc;', '&Ugrave;', '&Uuml;', '&uacute;', '&ucirc;', '&ugrave;', '&uuml;', '&reg;', '&plusmn;', '&micro;', '&para;', '&middot;', '&cent;', '&pound;', '&yen;', '¼', '½', '¾', '¹', '²', '³', '&iquest;', '&deg;', '&brvbar;', '&sect;', '&laquo;', '&raquo;' );
                        $force_with = array ('_', '_', '_', 'C', 'c', '_', '_', '_', '_', '_', 'N', 'n', 'T', 't', 'Y', 'y', 'y', 'ss', 'E', 'A', 'A', 'A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'D', 'E', 'E', 'E', 'E', 'f', 'e', 'e', 'e', 'e', 'I', 'I', 'I', 'I', 'i', 'i', 'i', 'i', 'O', 'O', 'O', 'O', 'O', 'O', 'o', 'o', 'o', 'o', 'o', 'o', 'U', 'U', 'U', 'U', 'u', 'u', 'u', 'u', 'R', 't', 'm', 'p', 'm', 'cent', 'Pound', 'Yen', 'frac14', 'frac12', 'frac34', '1', '2', '3', '_', '_', '_', '_', '_', '_' );
$force = str_replace ( $force_change, $force_with, $value );
return $force;
}

function ent_control($value){
$willchange = array ('(', ' ', ')', '&Ccedil;', '&ccdil;', '&lt;', '&gt;', '&amp;', '&quot;', '&nbsp;', '&Ntilde;', '&ntilde;', '&THORN;', '&thorn;', '&Yacute;', '&yacute;', '&yuml;', '&szlig;', '&AElig;', '&Aacute;', '&Acirc;', '&Agrave;', '&Aring;', '&Atilde;', '&Auml;', '&aelig;', '&aacute;', '&acirc;', '&agrave;', '&aring;', '&atilde;', '&auml;', '&ETH;', '&Eacute;', '&Ecirc;', '&Egrave;', '&Euml;', '&eth;', '&eacute;', '&ecirc;', '&egrave;', '&euml;', '&Iacute;', '&Icirc;', '&Igrave;', '&Iuml;', '&iacute;', '&icirc;', '&igrave;', '&iuml;', '&Oacute;', '&Ocirc;', '&Ograve;', '&Oslash;', '&Otilde;', '&Ouml;', '&oacute;', '&ocirc;', '&ograve;', '&oslash;', '&otilde;', '&ouml;', '&Uacute', '&Ucirc;', '&Ugrave;', '&Uuml;', '&uacute;', '&ucirc;', '&ugrave;', '&uuml;', '&reg;', '&plusmn;', '&micro;', '&para;', '&middot;', '&cent;', '&pound;', '&yen;', '¼', '½', '¾', '¹', '²', '³', '&iquest;', '&deg;', '&brvbar;', '&sect;', '&laquo;', '&raquo;' );
                        $withthis = array ('_', '_', '_', 'C', 'c', '_', '_', '_', '_', '_', 'N', 'n', 'T', 't', 'I', 'i', 'y', 'ss', 'E', 'A', 'A', 'A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'D', 'E', 'E', 'E', 'E', 'f', 'e', 'e', 'e', 'e', 'I', 'I', 'I', 'I', 'i', 'i', 'i', 'i', 'O', 'O', 'O', 'O', 'O', 'O', 'o', 'o', 'o', 'o', 'o', 'o', 'U', 'U', 'U', 'U', 'u', 'u', 'u', 'u', 'R', 't', 'm', 'p', 'm', 'cent', 'Pound', 'Yen', 'frac14', 'frac12', 'frac34', '1', '2', '3', '_', '_', '_', '_', '_', '_' );
$value = str_replace ( $willchange, $withthis, $value );
return $value;
}
Kullanımı:
$translate = get_html_translation_table ( HTML_ENTITIES );
                        $value = strtr ( $old, $translate );                      
                        $value = ent_control($value );
//////////////////////////////////////////////////////////////////////////
Randomlar
/**
*alt alta 4 adet random string üreten fonksiyon... ilki php.netten alinmadir...
*/

/**
 *alt alta 4 adet random string yada sayı üreten fonksiyon... ilki php.netten alinmadir...
 */

function randomkeys($length) {
    $pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
    $key = $pattern {rand ( 0, 36 )};
    for($i = 1; $i < $length; $i ++) {
        $key .= $pattern {rand ( 0, 36 )};
    }
    return $key;
}

function randomnumber($lengt) {
    $pattern = "123456789";
    $number = '';
    for($i = 1; $i < $lengt; $i ++) {
        $number .= $pattern {rand ( 0, 9 )};
    }
    return $number;
}
function randomuser($lengt) {
    $pattern1 = "aeuio";
    $patern2 = "bcdfghjklmnpqrstvwxyz";
    for($i = 1; $i < $lengt; $i ++) {
        $keys .= $patern2 {rand ( 0, 21 )};
        $t = $i + 1;
        for($j = $i; $j < $t; $j ++) {
            $i ++;
            $keys .= $pattern1 {rand ( 0, 5 )};
        }
    }
    return $keys;
}

function randomsifre($uzunluk) {
    $pattern1 = "aeuio";
    $patern2 = "bcdfghjklmnpqrstvwxyz";
    $pattern3 = "1234567890";
    for($i = 1; $i < $uzunluk; $i ++) {
        $sifre .= $patern2 {rand ( 0, 21 )};
        $t = $i + 1;
        for($j = $i; $j < $t; $j ++) {
            $i ++;
            $sifre .= $pattern1 {rand ( 0, 5 )};
            $s = $j + 1;
            for($r = $j; $r < $s; $r ++) {
                $j ++;
                $sifre .= $pattern3 {rand ( 0, 10 )};
            }
        }
    }
    return $sifre;
}