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`.

chunk_split():Split a string into smaller chunks

Split a string into smaller chunks string chunk_split ( string $str [, int $chunklength = 76 [, string $end = "rn" ]] ) string chunk_split ( 'The string to be chunked.','The chunk length.', 'The line ending sequence.' ) Ex. O/P: be a3 af 90 e3 db f2 86 ba c5 4c b6 1f 4d c0 fc


Refer to Friend

  Rainryas information World

Share Info/View About Profile Or Any Comment

Your Name:*  
Other Topic
Hotel Arpit Palace , Karol Bagh (New Delhi )
Travel with Children in China
List of Hospitals and Clinics in Bokaro
Derabassi :: Ram Devi Jindal Group of Colleges
Beetroot Soup
Create Your Profile in Category » String
Related Content..
 26  chunk_split():Split a string into smaller chunks
 30  htmlentities():Convert all applicable characters to HTML entities
 34  implode():Array elements convert into a string
 33  htmlspecialchars_decode():Convert special HTML entities back to characters
 35  String Formating Functions
 32  htmlspecialchars():Convert special characters to HTML entities
 28  crc32(),md5(),sha1()
 29  html_entity_decode():Convert all HTML entities to their applicable characters
 40  strpos() and stripos()
 24  substr_replace(): Replaces text within a portion 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 : 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