On Wednesday 18 June 2003 18:27, Neil wrote:Normally if you to to print() an array, you get "Array" returned.
I am trying to strip all HTML and other tags from a document, I have read the docs and written a 4 line script that should do the job (from my point of view ! ). However it seems to have literally no effect.
Heres the script :
<? $file=readfile("http://namx.co.uk/webstats/");
$file is an array ...
if (!($string = strip_tags($file))) print "<br> error ! <br>"; $strings = strtolower($string);
.. you're trying to perform string ops on an array.
This is not the case, I know that file() returns arrays, but i think readfile() returns a string.
any other ideas ?
Neil
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php