["dfml"]=> array(32) { [0]=> string(10) "2014-02-27" [1]=> string(10) "2013-10-30" [2]=> string(10) "2013-09-30" [3]=> string(10) "2013-04-30" [4]=> string(10) "2013-02-27" [5]=> string(10) "2012-10-31" [6]=> string(10) "2012-09-28" [7]=> string(10) "2012-05-02" [8]=> string(10) "2012-02-28" [9]=> string(10) "2012-02-27" [10]=> string(10) "2011-10-31" [11]=> string(10) "2011-10-03" [12]=> string(10) "2011-04-27" [13]=> string(10) "2011-02-25" [14]=> string(10) "2010-10-30" [15]=> string(10) "2010-10-04" [16]=> string(10) "2014-02-27" [17]=> string(10) "2013-10-30" [18]=> string(10) "2013-09-30" [19]=> string(10) "2013-04-30" [20]=> string(10) "2013-02-27" [21]=> string(10) "2012-10-31" [22]=> string(10) "2012-09-28" [23]=> string(10) "2012-05-02" [24]=> string(10) "2012-02-28" [25]=> string(10) "2012-02-27" [26]=> string(10) "2011-10-31" [27]=> string(10) "2011-10-03" [28]=> string(10) "2011-04-27" [29]=> string(10) "2011-02-25" [30]=> string(10) "2010-10-30" [31]=> string(10) "2010-10-04" } ["hcar"]=> array(16) { [0]=> string(10) "2014-01-29" [1]=> string(10) "2013-11-26" [2]=> string(10) "2013-07-26" [3]=> string(10) "2013-05-21" [4]=> string(10) "2013-01-29" [5]=> string(10) "2012-11-27" [6]=> string(10) "2012-07-24" [7]=> string(10) "2012-05-14" [8]=> string(10) "2012-01-24" [9]=> string(10) "2011-11-25" [10]=> string(10) "2011-07-26" [11]=> string(10) "2011-05-16" [12]=> string(10) "2011-01-28" [13]=> string(10) "2010-11-23" [14]=> string(10) "2010-07-24" [15]=> string(10) "2010-05-12" }

I have this array and each key values have multiple values in it. Like key 'dfml' have 15 values. I want to get all value of a particular key. Like when i call dfml it will return its all values.

Your post is a bit confusing, also 'dfml' has 32 values, not 15.

If you want to reference a specific key in an array you simply write $arrayName['dfml'].

If you want to loop through all the values of an array, use foreach.

foreach($arrayName['dfml'] as $itemNumber => $oneItem) 
{
    echo "Item number $itemNumber is: $one item <BR />" 
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.