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

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