How to cast variable to array

You can cast a variable to an array by using:

    $var = (array)$arr;

Leave a Comment