Get 1024 character from a file and keep paragraph and bold tag in PHP
Description
The following code shows how to get 1024 character from a file and keep paragraph and bold tag.
Example
//from w w w .ja va 2s .com
<?php
$file = fopen("test.txt","r");
echo fgetss($file,1024,"<p>,<b>");
fclose($file);
?>
The code above generates the following result.