Skip to content

prosoxi.com

Attention in classroom

  • Programming
    • ASP / ASP.net
    • .htaccess
    • PHP
    • JavaScript – Ajax
    • Facebook
    • HTML – XHTML
    • MySQL
    • node js
    • CSS
    • SEO
    • Flash
  • Mobile / Tablet
    • ionic framework
    • Android
    • cordova
    • ios
  • Graphics
    • After Effects
  • OS
    • Windows
    • MAC
    • Linux
  • Network
    • Trixbox
    • Plesk
    • Dreambox
  • News
    • Hack
    • Tutorials
    • Tips & Tricks
    • promo codes

Daily Archives: July 5, 2010

PHP – remove tag from string

<? $content = “this is something with an <img src=\”test.png\”/> in it.”; $content = preg_replace(“/<img[^>]+\>/i”, “(image) “, $content); echo $content; ?> The result is: this is something with an (image)  in it.

Posted byProsoxi.com WebmasterJuly 5, 2010October 31, 2010Posted inPHPTags: development, PHP, scriptingLeave a comment on PHP – remove tag from string

Advertise

Whocallsme.gr Widget Lookup

July 2010
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jun   Aug »
prosoxi.com, Proudly powered by WordPress.