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

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

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