diff --git a/reference/strings/functions/stripos.xml b/reference/strings/functions/stripos.xml index bc3e7ef9..ee455584 100644 --- a/reference/strings/functions/stripos.xml +++ b/reference/strings/functions/stripos.xml @@ -1,5 +1,5 @@ - + stripos @@ -71,6 +71,19 @@ &return.falseproblem; + + &reftitle.errors; + + + + Eğer başlangıç değeri + samanlık uzunluğundan büyükse, bir + ValueError yavrulanır. + + + + + &reftitle.changelog; @@ -126,13 +139,13 @@ $pos2 = stripos($mystring2, $findme); // 'a' kesinlikle 'xyz' içinde yoktur if ($pos1 === false) { - echo "'$mystring1' dizgesinde '$findme' dizgesi yok"; + echo "'$mystring1' dizgesinde '$findme' dizgesi yok", PHP_EOL; } -// 'a' 0. karakter olduğundan == işleci beklendiği gibi -// çalışmayacaktır. Bu yüzden === kullanmaya çalışın. +// !== işlecinin kullanımına dikkat. != işleci beklendiği gibi +// çalışmayacaktır çünkü 'a' 0. (ilk) karakterdedir. if ($pos2 !== false) { - echo "'$mystring1' dizgesinin $pos2. karakterinde bir '$findme' dizgesi var"; + echo "'$mystring1' dizgesinin $pos2. karakterinde bir '$findme' dizgesi var", PHP_EOL; } ?> ]]> diff --git a/reference/strings/functions/strpos.xml b/reference/strings/functions/strpos.xml index 884bf9a9..14ad3f8d 100644 --- a/reference/strings/functions/strpos.xml +++ b/reference/strings/functions/strpos.xml @@ -1,5 +1,5 @@ - + strpos @@ -72,6 +72,19 @@ &return.falseproblem; + + &reftitle.errors; + + + + Eğer başlangıç değeri + samanlık uzunluğundan büyükse, bir + ValueError yavrulanır. + + + + + &reftitle.changelog; @@ -165,6 +178,8 @@ if ($konum !== false) { // Belli bir konumdan önceki herşeyi yoksayarak bir karakteri arayabiliriz $samanlık = 'abcdef abcdef'; $konum = strpos($samanlık, 'a', 1); // $konum = 7 olur, 0 değil + +echo $konum, PHP_EOL; ?> ]]> diff --git a/reference/strings/functions/strripos.xml b/reference/strings/functions/strripos.xml index 4e36031f..2e7ced87 100644 --- a/reference/strings/functions/strripos.xml +++ b/reference/strings/functions/strripos.xml @@ -1,5 +1,5 @@ - + strripos @@ -89,6 +89,19 @@ &return.falseproblem; + + &reftitle.errors; + + + + Eğer başlangıç değeri + samanlık uzunluğundan büyükse, bir + ValueError yavrulanır. + + + + + &reftitle.changelog; @@ -131,17 +144,19 @@ ]]> @@ -149,7 +164,7 @@ if ($konum === false) { diff --git a/reference/strings/functions/strrpos.xml b/reference/strings/functions/strrpos.xml index 75e96fb6..179baa48 100644 --- a/reference/strings/functions/strrpos.xml +++ b/reference/strings/functions/strrpos.xml @@ -1,5 +1,5 @@ - + strrpos @@ -84,6 +84,19 @@ &return.falseproblem; + + &reftitle.errors; + + + + Eğer başlangıç değeri + samanlık uzunluğundan büyükse, bir + ValueError yavrulanır. + + + + + &reftitle.changelog; @@ -129,6 +142,7 @@