Powershell Get Array Count Php Array Slice