PHP WARLORD
Code
# Code
```php []
class Solution {

    /**
     * @param String $encodedText
     * @param Integer $rows
     * @return String
     */
    function decodeCiphertext($encodedText, $rows) {
        if ($rows == 1) return $encodedText;
        $n = 1 + strlen($encodedText) / $rows;
        $res = "";
        $i = 0;
        while ($i < $n) {
            for ($c=0; $c<$rows; $c++){
                $res .= $encodedText[$i + ($c * $n)];
            }
            $i++;
        }
        return rtrim($res);
    }
}
```
['PHP']