Wednesday, July 21, 2010

Mix Unisom With Alcohol

Separate words in a text field with a character in php


S
i need to separate the characters in a variable for a field Specifically we use the function str_replace (). Is an example: We
and finally we want the words are separated by hyphens, ie $ result = "Degree-of-the-expression" .
The expression used is:


$ result = str_replace ("","-",$ title)


0 comments:

Post a Comment