View Full Version : Substr help
10-23-2009, 08:25 PM
I would like substr to take off the first 3 characters off of a string.
RE: Blah Blah
Would be: Blah Blah
Can someone help me?
Ok I fixed it.
10-23-2009, 08:35 PM
Use the start and length parameters
$some_string = substr("Blah Blah", 0, 3);
10-23-2009, 08:40 PM
I had a similar question.
I want to check for the word CATEGORY: inside a string which can be CATEGORY: ITEM
and remove the word CATEGORY: leaving only ITEM inside the string....
In case the string does not have CATEGORY: before listing the ITEM then nothing happens...
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.