**************************************************
41. file_put_contents
“
İRCRehberi’ne Hoş Geldiniz! “Dosyada” file.txt.
PHP- Kodu
<?php
echo file_put_contents("file.txt","İRCRehberi'ne Hoş Geldiniz!");
?>
**************************************************
42. rtrim
Bir dizenin sağındaki boşlukları veya diğer önceden tanımlanmış karakterleri kaldırır.
PHP- Kodu
<?php
$var = "Hello Code4Example!";
echo rtrim($var, "Code4Example!");
?>
**************************************************
43. array_pop
Bir diziden son öğeyi kaldırır.
PHP- Kodu
<?php
$colors = array("orange","yellow","blue");
array_pop($colors);
print_r($colors);
?>
**************************************************
44. unlink
Bir dosyayı siler.
PHP- Kodu
<?php
$file = "file.txt";
if (!unlink($file))
{
echo ("Error during deletion");
}
else
{
echo ("File deleted");
}
?>
**************************************************
45. basename
Dosya adını bir yoldan döndürür.
PHP- Kodu
<?php
$path = "/prog/app.php";
echo basename($path);
?>