Returns the directory from a string. EX: /test/ FROM /test/blah.php Shows how to create functions, use explode(), count(), while() and preg_replace() functions.
↧