+ 7
does string count start from zero in python,php,javascript and java
8 Respostas
+ 7
yeah thank you very much
+ 6
okay what about their length not index
+ 3
String index starts with 0 but length start with 1.
Let say
-------length->12345678
echo strlen("abba_ktg");
--------index->01234567
/*Here string index is 0-7 but length count start by using value 1*/
Output:-
8
I hope your doubt will be cleared😊
+ 3
My pleasure😊
+ 2
Yes
+ 2
Nope.. it counts from 1..
While the index starts from 0
+ 1
Yes the indexing starts from 0 at the beginning and -1 at the end