**************************************************
36. header
Bir istemciye ham bir
HTTP üst bilgisi gönderir.
PHP- Kodu
<?php
header("Expires: Tur, 11 May 2022 01:00:00 GMT");
header("Pragma: no-cache");
header("Cache-Control: no-cache");
?>
**************************************************
37. strtoupper
Bir dizeyi büyük harfe dönüştürür.
PHP- Kodu
<?php
echo strtoupper("Hello WORLD!");
?>
**************************************************
38. array_values
Bir dizinin tüm değerlerini içeren bir dizi döndürür.
PHP- Kodu
<?php
$info = array("Name"=>"Peter", "Age"=>"26", "City"=>"L.A.");
print_r(array_values($info));
?>
Çıktı :
PHP- Kodu
Array
(
[0] => Peter
[1] => 26
[2] => L.A.
)
**************************************************
39. md5
Bir dizenin MD5 karmasını hesaplar.
PHP- Kodu
<?php
$str = "Code4Example";
echo md5($str);
?>
**************************************************
40. method_exists
“$book” parametresi olarak sağlanan nesnede “
write” metodunun var olup olmadığını kontrol eder.
PHP- Kodu
<?php
$book = new Book();
var_dump(method_exists($book, 'write'));
?>