Syntax
mixed fscanf file_handle,format_specifier [, mixed &$... ] )
<?php
$file=fopen("c:/rose1/ram.txt","r");
while($ar1=fscanf($file,"%s\t%s"))
{
for($x=0;$x<sizeof($ar1);$x++)
{
echo $ar1[$x];
if ($x%2!=0)
echo "<br>";
}
}
?>
Output
first_namelast_name
ramkumar
shyamsinha
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.