Syntax for PHP pathinfo() Function
Array pathinfo(file_path,other options)
Code/Syntax of PHP pathinfo() Function
<?php
$ar1=pathinfo("aa.txt");
foreach($ar1
as $k=>$v)
{
echo $k."->".$v."<br/>";
}
?>
Output
dirname->.
basename->aa.txt
extension->txt
filename->aa
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.