/**
* @param Integer[] $nums
* @return NULL
*/
function moveZeroes(&$nums) {
        $nums_len = count($nums);
        for($i = 0; $i < $nums_len; $i++){
            if($nums[$i] === 0){
                unset($nums[$i]);
                $nums [] = 0;
            }
        }
}   
by Vasil Grdzelishvili
2 years ago
PHP
leetcode
0
Pro tip: use ```triple backticks around text``` to write in code fences