1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: Getting started with string manipulation in php

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    4.00/5

PHP » Basics — almost 3 years ago
When working with php you will often come across the common problem of replacing or grabbing a specific chunk of a string. The way I look at it you have two main options that come directly out of php’s function api. You can either use a simple, quick and easy str_replace() function, or you can dive into the world of regular expressions and tackle the problem a little more smartly using preg_replace().

Comments

Your Comment

You must be logged in to post a comment.