mixed pathinfo ( string $path [, string $specific_element ] );
When you need information about a file’s path, you use
pathinfo. You give it the path that you want to check. If you specify the element you want back, then it returns just that element in a string; else it returns an associative array that contains the following elements:
- extension (if any)
- The path to be evaluated and parsed.
- optional The specific element you want to receive back instead of the entire associative array. If you want this option, then pass in one of these constants:
Returns a string for the specific element you requested or, if none is requested, then you get an associative array back.
Your best friend is code, Tonya is making the introductions.
More coming soon…keep checking back.