Answers for "length of associative array php"

PHP
0

how to get length of object in php

$total = count((array)$obj);
Posted by: Guest on November-23-2020
1

calculate array length in php

<?php
  //use count($var) ->
$a[0] = 1;
$a[1] = 3;
$a[2] = 5;
var_dump(count($a));
Posted by: Guest on March-31-2021

Code answers related to "length of associative array php"

Browse Popular Code Answers by Language