Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-09-2009
Member
 
Join Date: Oct 2008
Posts: 101
How to Manipulate String using PHP String Functions

I know there are couple of ways through which we could manipulate the String into other form, but I am unaware about the different method that could be implement to see change effect, so please let me know what are the PHP string functions, that could be used.
Reply With Quote
  #2  
Old 21-09-2009
Member
 
Join Date: Oct 2008
Posts: 132
Re: How to Manipulate String using PHP String Functions

Following are the more powerful string handling and manipulating functions take a look at the POSIX regular expression functions and the Perl compatible regular expression functions.

convert_uudecode() ->Decodes a uuencoded string
convert_uuencode() ->Encodes a string using the uuencode algorithm
htmlentities() ->Converts characters to HTML entities
htmlspecialchars_decode() ->Converts some predefined HTML entities to characters
Reply With Quote
  #3  
Old 21-09-2009
Member
 
Join Date: Jan 2009
Posts: 140
Re: How to Manipulate String using PHP String Functions

programming languages for manipulating strings is great idea to create own string functions by combining PHP built in functions so you get exactly what you want. A function is like a subroutine. It is a predefined set of commands that are executed when the function is called. Functions can be as simple or complex as desired, and can contain other functions within themselves. Creating functions is always a good idea if you think you will do a thing more than once, or if the code gets to messy just move out some lines as a function with a good name and use it! Most programmers have files with good functions to use in all projects, and string functions are a great thing to have there.
Reply With Quote
  #4  
Old 21-09-2009
Member
 
Join Date: Feb 2009
Posts: 105
Re: How to Manipulate String using PHP String Functions

Following are some of the PHP functions that I know and I have implemented in my program.

trim

It?s only purpose is to remove ?white spaces?. It might sound unuseful, but if you think about a use writing something in your newly created input field in a form and often accidently puts in a space in the end.

PHP String Extract

We can use php built in string function to create a function which can be used in various applications to collect part of a string.

strpos(string,whatToFind,start)

This is a function you will most guaranteed use pretty often, and need to know how to handle!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Manipulate String using PHP String Functions"
Thread Thread Starter Forum Replies Last Post
Convert XML string into DOM GreatThinker Software Development 6 22-07-2010 09:48 AM
VB : How can I make the use String functions Fielder Software Development 3 19-01-2010 01:10 PM
How to get a random value from a string kamina23 Software Development 4 22-10-2009 10:51 PM
String as Currency in C# ADELIO Software Development 3 09-07-2009 12:04 PM
Difference between capacity and size functions of string class DimitrisLiatsos Software Development 5 25-10-2008 05:07 PM


All times are GMT +5.5. The time now is 05:57 AM.