daily pastebin goal
45%
SHARE
TWEET

test

a guest Jun 8th, 2013 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $text = '[divs][center][size=150]Hunter x Hunter[/size][/center][/divs]
  2.      
  3. [columns1][center][size=150]Poster[/center][/size][divs][center][img3=http://images3.wikia.nocookie.net/__cb20121012124652/hunterxhunter/images/4/40/Hunter-X-Hunter-2011.jpg]Poster[/img3][/center][/divs]';
  4.  
  5.  
  6. $posttext = substr($text,0,400);
  7. preg_match('/img3=(.*?)]/msu', $posttext, $icon);
  8. $theXimage = (!empty($icon[1])) ? $icon[1] : '';
  9. if (strpos($theXimage,'.jpg:') !== false || strpos($theXimage,'.jpeg:') !== false || strpos($theXimage,'.png:') !== false || strpos($theXimage,'.gif:') !== false || strpos($theXimage,'.bmp:') !== false)
  10. {
  11.    $theXimage = substr($theXimage, 0, strrpos($theXimage, ':'));
  12. }
  13.  
  14. echo($theXimage);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top