Use preg_split to split the text into lines, then remove the unwanted tags from each item in a loop.
What is your sample input?
You usually get what you pay for. If this is a cheap script, expect poor coding.
I think Gray Fox misread the question slightly, should be: $psnID = "parker-94"; $url =...
$subject = <<< ENDLINE <div class="yn-story-content"> <p>CLEVELAND – A federal judge in Ohio has ordered mental health...
Use: echo htmlspecialchars($row['advert']); That's all you need to do.
There are several good examples near the top of the php manual page, that is not enough? http://us3.php.net/manual/en/function.array-map.php
gedit is fine, I just don't use it on a day-to-day basis for PHP projects.
http://us3.php.net/manual/en/reserved.variables.environment.php
Netbeans or Eclipse for me.
I don't see a problem at first glance. You should be using array_rand() to pull random elements from the array though.
<?php $result_cat = mysql_query("SELECT DISTINCT categorie FROM wallpapers GROUP BY categorie ASC"); $cats = array(); while ($row =...
Only for brevity. Either way is fine.
<script type="text/javascript"> function handle_change() { var i, el, val, values = []; for (i = 1; i < 100; ++i) { el =...
What are the actual problems you're having?
Separate names with a comma.