Quick actions

cmd+k|ctrl+k

Navigation

Languages

Array Checking

Snippet info

Language

Php

Visibility

public

Author

mirulumam

Created

2017-04-10T04:22:09Z

Updated

2017-04-10T04:22:09Z

<?php

$array = array();

if ( count($array) < 1 ) {
    echo "array is empty";
} else {
    echo json_encode($array);
}
INFO