<?php $path = 'a/b'; $pathParts = array_pad(explode('/', $path), -2, 'root'); var_dump($pathParts);
You have javascript disabled. You will not be able to edit any code.