Wuup

We're Geeks – This is Where We Write

  • Gaming Unbias Game Reviews & Rants
    • PC Games
    • PS3
    • Retro Corner
    • Tweaks and Hacks
    • Wii
    • Xbox 360
  • Marketing Web Marketing, SEO and Tricks
    • SEO & Search Engine Watch
    • Social Media
    • Website Marketing
  • Other Stuff Wuup Blog, full of tons of resources!
    • Featured
    • Misc
    • News
    • Open Source
    • Podcast
    • Software
    • Technology
    • Website Design
  • Tutorials PHP, Actionscript, Tutorials, Advice
    • 3d Modelling & Design
      • Blender 3D
    • Actionscript 2.0
    • Actionscript 3.0
    • AIR 1.5
    • AIR 2.0
    • CSS
    • flash
    • Flex 4
    • iPhone/ iPod/ iPad
    • Java
    • Javascript
    • Mobile Apps
    • Photoshop
    • PHP
    • Windows XP

Stay Updated: Posts | Comments

  • Home
  • About
  • Contact
  • Forum
  • Privacy
  • Services
« I am in google wave, no one else on my list is
3 Reasons Google Wave is Overrated »
  • PHP Basics : Removing White Space / HTML Tags From A String

    PHP
    16th October 2009 - By Alan Hamlyn

    Hey Wuup readers. I’ve got a simple post here for those learning PHP, or even the more seasoned programmer. If you’re looking for a simple way to to remove white space from strings, and strip html tags from strings too, try this out. It can be handy if you don’t want people to abuse a form or field in an application:

    <?php
    
    $example = " test  ff       1  <br > </p> hi     ";
    
    $result = rtrim($example);
    
    echo trim(strip_tags($result));
    
    ?>
    • Array
    • Array
    • Array
    • Array
    • Array
    • Array
    • Array
    • Array
  • 2 Comments to “PHP Basics : Removing White Space / HTML Tags From A String”

    • Reply

      PHP Basics : Removing White Space / HTML Tags From A String | Wuup on 16 October, 2009

      [...] the rest here: PHP Basics : Removing White Space / HTML Tags From A String | Wuup SHARETHIS.addEntry({ title: "PHP Basics : Removing White Space / HTML Tags From A String | Wuup", [...]

    • Reply

      . o O ( Simple PHP Reviewed: Scam or Serious? ) on 17 October, 2009

      [...] may also want to check out: PHP Basics : Removing White Space / HTML Tags From A String | Wuupe-Books Baba » Smarty PHP Template Programming And ApplicationsWeb Developer Plus – [...]

    Leave a Reply

    Click here to cancel reply.


Copyright © 2010 - Wuup

 

  • Drop Us a Line

    Wuup is our blog...
    Contact us about your project:



    *Wuup is a blog written by the guys at PieDog Media - A Web Development & Design Company
  • Advertising



  • Links

    • Think Upright – By Alan Hamlyn
  • Photos on Flickr

  • Recent Comments

    • Alan Hamlyn on Facebook Disasters LMAO
    • Tweets that mention Singularity – Resolution Tweak (W7) | Wuup -- Topsy.com on Singularity – Resolution Tweak (W7)
    • tasha lewis on Facebook Disasters LMAO
  • Apps We’ve Made!


  • “Like” Us On Facebook