protected function pop(array $strings)
	{
		$cnt = count($strings);
		$i   = $cnt;
		while (--$i >= 0)
		{
			array_pop($strings[$i]);
		}

		// Remove empty elements then prepend one back at the start of the array if applicable
		$strings = array_filter($strings);
		if (count($strings) < $cnt)
		{
			array_unshift($strings, []);
		}

		return $strings;
	}
protected function pop(array $strings)
	{
		$cnt = count($strings);
		$i   = $cnt;
		while (--$i >= 0)
		{
			array_pop($strings[$i]);
		}

		// Remove empty elements then prepend one back at the start of the array if applicable
		$strings = array_filter($strings);
		if (count($strings) < $cnt)
		{
			array_unshift($strings, []);
		}

		return $strings;
	}
protected function pop ( array $ strings ) { $ cnt = count ( $ strings ) ; $ i = $ cnt ; while ( -- $ i >= 0 ) { array_pop ( $ strings [ $ i ] ) ; } // Remove empty elements then prepend one back at the start of the array if applicable $ strings = array_filter ( $ strings ) ; if ( count ( $ strings ) < $ cnt ) { array_unshift ( $ strings , [ ] ) ; } return $ strings ; }
Remove the last element of every string

@param  array[] $strings Original strings
@return array[]          Processed strings
Remove the last element of every string