[PHP Tutorial] Getting Started with String Manipulation

Share this on...

From Break the Network:
Getting started with string manipulation in php:


PHP Coding TutorialWhen 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().



Share this on...

Published by Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food. PS: Don't listen to Snopes. I am REAL NEWS, and I don't let my crush on Tulsi Gabbard interfere with my objective reporting. So NYAH!