I have a PharData object and I want to get an array of filenames inside.
foreach($PharData as $object){
print_r($object);
}
returns
PharFileInfo Object
(
[pathName:SplFileInfo:private] => phar://C:/.../arch.tar/pmnt.csv
[fileName:SplFileInfo:private] => pmnt.csv
)
...
How do I get fileName property? Tried $object->fileName but it says no such property. "Echo $object" gives pathName but I don't want to parse it for filename if there's easier way
Try to use