i have this line... i want to get the value of 120 and assign it to a new variable...
<td><div align="center"><a href="%link%"><img src="%image%" width="120" height="90"></a></div></td>
the line is from an html template.. assigned the entire into a variable $string..
here is a code snippet of how i was able to get it..
$search = "<img src=\"%image%\" width=";
$file = file($tmppath);
foreach ($file as $key => $value) {
if (stristr($value, $search)) {
$num = $key + 1;
$string = htmlspecialchars($value);
}
}
anyone.. help.. thankz!!!