<?php
class Path
{
public $currentPath;
private $array;
function __construct($path)
{
$this->currentPath = $path;
$array = explode("/", $path);
print_r($array);
}
public function cd($newPath)
{
throw new Exception('Not implemented');
}
}
$path = new Path('/a/b/c/d');