Hello, I’m hardly trying to get the main content of a page through the API printed as an one page.

The point is that even when not intentionaly prining the output I get the whole array with title etc. but I only want the HTML, not more.

That’s the script I wrote this way

 

<?php

$ch = curl_init();

$url = "http://www.wecowi.de/api.php?action=parse&page=Hilarie_Burton&prop=text&format=txt";

curl_setopt($ch, CURLOPT_URL, $url);

curl_exec($ch);

$textarray = explode( $ch , "=>" );

curl_close($ch);

?>

 

Which prints the array although there is no print.

Is there any option to get only get the HTML or which of the four php outputs is the best to get a result that can be reperated and be used for such a task?

Thanks

                DaSch