بی نهایت منونم جواب دادین
این مدلی منظورتونه
for ($i=1; $i<101; $i++)
{
${"myfile".$i} = fopen("1/Train/$i+38228","r+") or die("Unable to open file!");
${"string".$i} = fread(${"myfile".$i}, filesize("1/Train/$i"));
${"a".$i} = preg_replace('/[0-9_?!.,><:";\\|}{\[\]\-=+@#$%^&*()~`؟ \' \/ \\\\ I II III IV ]/', ' ',${"string".$i});
${"b".$i} = preg_replace('/\b\w{1,3}\b/', ' ', ${"a".$i});
}
شرمندم ولی ارور میده
Warning: fopen(1/Train/'1+38228'): failed to open stream: No such file or directory in C:\wamp64\www\nb2\1.php on line 6
خط 6 همون fopen