Rainrays Profiles
 
English
   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
 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
 

Difference bewteen array_key_exists() and array_keys()

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

 Bool array_key_exists([$key],[$arr])

 
$key is required. For check key is exist in array key list
$arr is required. Array have a key list
 
Example 
 
$arr=array("a"=>"Somesh","b"=>"Birjesh");
if (array_key_exists("a",$arr))
 {
 echo "Key exists!";
 }
else
 {
 echo "Key does not exist!";
 }
?>
 
O/p: Key exists!
 
array_keys([$arr],[$val]  return list of key inform of array
 
$arr is required field
$val optional, if this value is define function will return kay of that particular value
 
Example
 
$arr=array("a"=>"aaa","b"=>"bbb","c"=>"ccc");
print_r(array_keys($arr));
?> 
 
o/p: Array ( [0] => a [1] => b [2] => c )
 
$arr=array("1"=>"xxx","2"=>"yy","3"=>"zzz");
print_r(array_keys($arr,"yy"));
?>
 
o/p: Array ( [0] => 2)
 

 




array_unique(), array_unshift(), array_values(), array_walk()

array_unique([$arr]) remove duplicate values from an array "aa","b"=>"bb","c"=>"aa");     print_r(array_unique($arr)); ?>    o/p: Array ( [a] => aa     [b] => bb ) array_unshift([$array],[$val],[$val2],[$val3...]) $arr    Required. an array $val1    Required. Spec..

More...





Refer to Friend

  Rainryas information World
 

Share Info/View About Profile Or Any Comment

 
Your Name:*  
 
Comment:*  
 
 
 
Other Topic
District Tiruvarur
Schools / College in Dumka
Nainital :: Dynasty Resort
JABALPUR :: S.C.GUPTA MEMORIAL HOSPITAL & RESEARCH CENTRE
Nagpur :: Karmavir Dadasaheb Kannamwar College of Engineering
 
Create Your Profile in Category » Array
 
 
 
 
 
Related Content..
 53  array_unique(), array_unshift(), array_values(), array_walk()
 45  Functiion array_fill()
 43  array_chunk():Array splits into chunks of arrays
 48  array_merge(), array_pop(), array_push(), array_rand()
 42  array()
 46  Function array_flip()
 52  array_reverse(), array_search(),array_slice()
 44  array_count_values():Number of occurrences for each value in 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 : 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