**************************************************
11. preg_match
Bir dizedeki patterni bulur, kalıp varsa doğru, aksi takdirde yanlış döndürür.
PHP- Kodu
<?php
preg_match("/^sad/", "Alex was sad"); // returns false
preg_match("/^sad/", "sad Alex!"); // returns true
?>
**************************************************
12. sprintf
Bir veya daha fazla bağımsız değişkenden biçimlendirilmiş bir dize oluşturur.
PHP- Kodu
<?php
$str = "Welcom";
$n = 2;
$formatted_str = sprintf('%s, to %uth chapter of PHP.',$str, $n);
echo $formatted_str;
?>
Çıktı:
PHP- Kodu
Welcom, to 2th chapter of PHP.
**************************************************
13. trim
Bir dizenin her iki tarafından da boşlukları ve diğer önceden tanımlanmış karakterleri kaldırır.
PHP- Kodu
<?php
$str = ' Welcome to ircrehberi.net ';
$res = trim($str);
echo $res;
?>
**************************************************
14. strtolower
Bir dizeyi küçük harfe dönüştürür.
PHP- Kodu
<?php
echo strtolower("ircforumlarının en iyi adresi ircrehberi.");
?>
**************************************************
15. file_exists
Bir dosya veya dizinin mevcut olup olmadığını kontrol eder.
PHP- Kodu
<?php
echo file_exists("file.txt");
?>