Rainrays Profiles
   Pregnancy & Care | 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 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`.

htmlspecialchars():Convert special characters to HTML entities

string htmlspecialchars ( [string $string], [int $quote_style], [string $charset], [bool $double_encode = true] ) '>' (greater than) becomes '>' '<' (less than) becomes '<' '&' (ampersand) becomes '&' ' ' ' (single quote) becomes ''' only when ENT_QUOTES is set. ' "' (double quote) becomes '"' when ENT_NOQUOTES is not set. return value is converted string Hello&..


Refer to Friend

  Rainryas information World

Share Info/View About Profile Or Any Comment

Your Name:*  
Other Topic
Integration jobs in India
Jobs in Jodhpur
Bhopal :: Radharaman Institute Of Technology & Science (RITS)
District Rampur
Cabbage Chana Dal Salad
Create Your Profile in Category » String
Related Content..
 32  htmlspecialchars():Convert special characters to HTML entities
 34  implode():Array elements convert into a string
 28  crc32(),md5(),sha1()
 33  htmlspecialchars_decode():Convert special HTML entities back to characters
 37  number_format(number,decimals,decimalpoint,separator)
 22  substr(): Returns a piece of a string
 21  substr_count()
 30  htmlentities():Convert all applicable characters to HTML entities
 29  html_entity_decode():Convert all HTML entities to their applicable characters
 39  strip_tags()
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 : 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