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

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

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