| ( ! ) Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/session) failed: Permission denied (13) in /home/prototurk.com/public_html/app/init.php on line 4 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0002 | 362184 | {main}( ) | .../index.php:0 |
| 2 | 0.0007 | 366000 | require( '/home/prototurk.com/public_html/app/init.php' ) | .../index.php:9 |
| 3 | 0.0007 | 382512 | session_start ( ) | .../init.php:4 |
fromIndex 0'dan küçük isefromIndex 0'dan küçük iseEğer fromIndex parametresini sıfırdan küçük değer verirseniz mevcut dizi uzunluğu ile verdiğiniz değer toplanır ve ona göre eşleşme aranır.
// örnek bir anlatım
// array uzunluğu = 3
// fromIndex = -100
// indis başlangıcı = 3 + (-100) = -97
let arr = ['a', 'b', 'c']
arr.includes('a', -100) // true
arr.includes('b', -100) // true
arr.includes('c', -100) // true
arr.includes('a', -2) // false - çünkü (3 + (-2)) = 1 olacağı için 1. indiste değer b olduğundan false döner