<?php echo count($user_wish_list);?> code example Example: php length of array <?php $arr = ["one", "two", "three", "four"]; echo count($arr); ?>