I have the following string:
$str = "
r
a
n
d
...
om
";
How do I get the HTML for the first n-th tags?
Ex : n = 3 ; result = "r<...>n ;
I would like a regexp if possible.
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...
No comments:
Post a Comment