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

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

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