Share it

Bookmark and Share

Translate

Tuesday, May 31, 2011

0 PHP String Functions

1.str_replace: How to replace a part of a string with another string

2.str_ireplace: Case in-sensitive search and replace using array of strings

3.strlen: How to find length of a string in PHP?

4.trim: Removing empty space from both sides of a string

5.strrev: Reversing a string by using strrev function in PHP

6.Adding two or more strings in PHP

7.stristr: Searching for a presence of a string inside another string

8.nl2br: Adding Line breaks inside a string in place of carriage returns

9.split: Breaking a string to form array using delimiters

10.substr: Collecting part of a string

11.substr_count: Counting occurrence of sub string in main string

12.str_repeat: Repeating a string number of times

13.strtolower(): function to change alphabets to Lower case

14.strtoupper(): function to change characters to upper case letters

15.function to collect part of a string with two landmarks

16.Random string generator with number and alphabets for password

17.strcasecmp(): Case insensitive string comparison

18.strcmp(): Case sensitive string comparison

19.str_pad(): String pad with specified length

20.md5 hash of a string: encryption of a string

21.Separating domain and userid part from an email address using split

22.htmlspecialchars: Printing html special chars to the page

23.strip_tags: Removing html tags within a string

24.ucwords: Converting first letter of every word to UpperCase


0 comments:

Post a Comment

Thanks for your valuable Comment

 

TechnoTipworld- Tips,Tricks,Technology Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates