Nieuw lid |
|
kleine functie die handig zou kunnen zijn
function cut($start,$end,$word)
{
$startposition = strpos($word,$start); // startpostitie
if($startposition > 0){
$word=substr($word,strpos($word,$start)+strlen($start));
$word=substr($word,0,strpos($word,$end));
return $word;
}
else{
return false;
}
}
function cut($start,$end,$word) { $startposition = strpos($word,$start); // startpostitie if($startposition > 0){ return $word; } else{ return false; } }
uitleg:
$ripit='img class="******" height="64" width="64" src="http://****/***/sd/qN/12dsb2JhbC8XCgRcBxwAGABaL3RpbGUvMC8yODAwYwAAAAAAAAD4otqR.jpg" alt="****" title="****" />';
$url=cut("src=","alt=",$ripit);
$ripit='img class="******" height="64" width="64" src="http://****/***/sd/qN/12dsb2JhbC8XCgRcBxwAGABaL3RpbGUvMC8yODAwYwAAAAAAAAD4otqR.jpg" alt="****" title="****" />'; $url=cut("src=","alt=",$ripit);
|