Rainrays Profiles
   Super Hit Music FM Radio | Submit Your Free Ads | Tours & Travel India

Home rainrays profile world Contact Us Online Free Marketing Aadhaar Card Online Free Marketing Pregnancy & Care Online Free Marketing Tour n Travel Free Ads with rainrays Festivals  Tourist Attraction India Pincode India  Tourist Attraction India Tourist Attraction India Jobs Herbalife Club Online Fm radio Recipes Jobs Select Babies Name

Custom Search
More Topics...
  Pregnancy tips and care  Pregnancy tips and care
 YouTube Videos YouTube Videos
  Hospitals & clinics in India Hospitals & clinics in India
  Hospitals & clinics in India World Travel Tips
 Kitchen Dictionary Kitchen Dictionary
 Recipes Recipes
 Personality Personality
 Institute/Colleges Institute/Colleges
 Indian Festivals Indian Festivals
 University University
 Restaurant Restaurant
 Districts List in India Districts List in India
 Districts Profile of India Districts Profile of India
 Hotels Hotels
 Love dating and Romance Love dating and Romance
 Baby name list Baby name list
 Jobs by location Jobs by location
 Jobs by Keyword Jobs by Keyword
 Jobs by Function Jobs by Function
 Jobs Part Time Jobs Part Time
 Shayari Shayari

Best Indian Tours
 Week End Tours  Week End Tours
 Wildlife tours Wildlife tours
 Honeymoon  Honeymoon Tours
 Religious Tours Religious Tours
 Religious Tours International Tours
 Religious Tours Indian Tours for Overseas

strstr():Finds the first occurrence of a string

  Topic » Language » PHP » String
Post By : Rainrays At 2010-05-10 16:11:46

string strstr ( string str, string needle )
string stristr ( string str, string needle )


$url = "www.xxx.com";
$domain = strstr ($url, ".");
echo $domain;

O/P: .xxx.com
In this example in which you are attempting to find the domain name of the current string, the strstr() function finds the first instance of the dot (.) character and then outputs everything starting with the first instance of the dot. In this case, the output would be `.xxx.com`.


Mostly this function is use in front end of website when we fill the form this function Strip HTML and PHP tags from a string string strip_tags ( [string $str], [string $allowable_tags] ) we can understand this function with the help of example:  

Hello World.

My text'; echo $text_data; echo "
"; echo strip_tags($text_data); echo "


Refer to Friend

  Rainryas information World

Share Info/View About Profile Or Any Comment

Your Name:*  
Other Topic
District Tikamgarh
Thanjavur :: As-Salam College of Engineering and Technology
Plant jobs in India
District Prakasam
Pincode Shimoga District Karnataka
Create Your Profile in Category » String
Related Content..
 39  strip_tags()
 25  chr(): Return a specific character
 32  htmlspecialchars():Convert special characters to HTML entities
 38  explode() Split a string into Array
 33  htmlspecialchars_decode():Convert special HTML entities back to characters
 40  strpos() and stripos()
 24  substr_replace(): Replaces text within a portion of a string
 37  number_format(number,decimals,decimalpoint,separator)
 21  substr_count()
 22  substr(): Returns a piece of a string
Special Tours Type India
 Week End Tours  Week End Tours
 Wildlife tours Wildlife tours
 Honeymoon  Honeymoon Tours
 Religious Tours Religious Tours
 International Tours International Tours
 Tours for Overseas Indian Tours for Overseas
More on rainrays.com
Top Links : FM Radio | Contact us | About us | Privacy & Policy | Terms & Condition | Extract Email | Submit URL to Search Engine
Jobs : Jobs by Location | Part Time Jobs | Jobs by Function | Jobs by Keyword | Jobs Out of india | Jobs Search Engine
Other Links
    Girl baby Names | Boy baby Names | Love dating and Romance | University | Restaurants in India | Hotels in India | Hospitals & clinic | Pregnancy & Care
    Coaching Institute | Educational Institution | School/Colleges by Loaction | Recipes | Std Code | PHP | Products | Links | PHP Interview Question

Copyright © 2010 --- All Rights Reserved