Skip to content

iBeatles

DON'T PANIC

  • Home
  • about me
    Google fan, Mac fan, UNIX/Linux, Geek
  • twitter
  • facebook

Recent Posts

  • 对弈
  • 白衬衫和雾霾
  • 慢慢的,就没有了,就像从未存在过
  • 奴隶
  • NVIDIA: could not open the device file /dev/nvidia2 (Input/output error)

Categories

  • Android
  • apple
  • Food
  • Google
  • Hardware
  • Lens
  • Linux
  • Mac
  • Web X.0
  • 上班那点事儿
  • 矫情
  • 读首诗再睡觉
  • 音乐心情

Tag Cloud

BlackBerry Fedora Gimp CPU BlackBweey Diamondback B&O Firmware Food api AdSense bash 2012 apache GFW Gentoo Bugzilla aiwa 2010 CMS Atom Etymotic eclipse apple CUDA Eink Android Fink GIGABYTE Cydia 80后 911 conky Blog Feisty Fawn ES3 Bluetooth 2011 Design Beatles BCM92045 CACTI amazon e888 ADSL

Tag: WordPress

Automatically Get Images on Post Content

]*\ />~';
preg_match_all( $soImages, $soContent, $thePics );
$allPics = count($thePics[0]);
if( $allPics > 0 ) {
    echo $thePics[0][0];
}
else {
    echo "No IMG!";
}
?>
Posted on August 3, 2009May 19, 2011Categories Web X.0Tags PHP, WordPressLeave a comment on Automatically Get Images on Post Content
Proudly powered by WordPress