Answers for "Where do php count start"

PHP
0

Where do php count start

// PHP Count (Starts from 1, not 0)
// //////////////////////////////////
$numbers = array(0,1,2);
echo count($numbers); // will echo 3
// //////////////////////////////////
$letters = array('a','b','c','d');
echo count($letters); // will echo 4
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language