Rainrays Profiles
 
English
   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
 BSNL STD Codes (INDIA) BSNL STD Codes (INDIA)
 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
 

strpos() and stripos()

  Topic » Language » PHP » String
Post By : Rainrays At 0000-00-00 00:00:00

 int strpos ( [string $mystring] , [mixed $findme], [int $offset] )

return position of first occurrence of a string
Note: counting start from '0'.
$strng = 'my job is account teacher';
$str   = 'a';
$pos = strpos($strng, $str);
echo "
The string '$str' was found in the string '$strng'
";
echo " and exists at position $pos";
?>
o/p:
The string 'a' was found in the string 'my job is account teacher'
and exists at position 10
 
 
int stripos ( [string $mystring] , [mixed $findme], [int $offset] )
return position of first occurrence of a string but case-insensitive 
Note: counting start from '0'.
$strng = 'This is A job of account teacher';
$str   = 'a';
$pos = strpos($strng, $str);
echo "
The string '$str' was found in the string '$strng'
";
echo " and exists at position $pos";
?>
o/p:
The string 'a' was found in the string 'This is A job of account teacher'
and exists at position 17



crc32(),md5(),sha1()

crc32(): Calculates the crc32 polynomial of a string sha1():Calculate the sha1 hash of a string  

"; $val = md5("Pankaj Raghuwanshi"); echo $val; echo "
"; $val = sha1("Pankaj Raghuwanshi"); echo $val; ?>

O/P:


More...





Refer to Friend

  Rainryas information World
 

Share Info/View About Profile Or Any Comment

 
Your Name:*  
 
Comment:*  
 
 
 
Other Topic
Baby Corn Sesame sticks
Kanchipuram :: Aarupadai Veedu Institute of Technology
Nadiad :: Dharamsingh Desai Institute Of Technology
Village in Anoopshahr Tehsil
Pincode Sirsa District West Bengal
 
Create Your Profile in Category » String
 
 
 
 
 
Related Content..
 28  crc32(),md5(),sha1()
 32  htmlspecialchars():Convert special characters to HTML entities
 33  htmlspecialchars_decode():Convert special HTML entities back to characters
 23  strstr():Finds the first occurrence of a string
 29  html_entity_decode():Convert all HTML entities to their applicable characters
 26  chunk_split():Split a string into smaller chunks
 25  chr(): Return a specific character
 34  implode():Array elements convert into a string
 27  count_chars(): Return information about characters used in a string
 38  explode() Split a string into Array
 
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