get separate values instead of getting values inside a loop

i am using a for loop and it returns 3 ids . but how to get those three ids separate instead of getting it inside a for loop. my code is

        <? $meta = get_post_custom_keys();
            $prev = '';
            foreach ($meta as $key) {
                $parts = explode (':', $key);
                if (count ($parts) == 1 || $parts[0] != 'download')
                $value = get_post_meta (get_the_ID(), $key, true);
                echo "<a href='$value'>{$parts[1]}</a>";


now in the above echo "<a href='$value'>{$parts[1]}</a>"; gets 3 diffrent values of $values everytime it runs but how to get those ids separate such as value 1 , value 2 and value 3 ?


you can store the $value in an array as $value[] = get_post_meta (get_the_ID(), $key, true);

Need Your Help

Export different sized tables to same excel tab in SAS

excel export append sas

I have two tables A and B that have a different number of columns, with absolutely no match between the columns names but one differentiator (let's call it ID).

In what situation, if we add sorted numbers as keys to a hash table, we can expect the hash to be ordered?

php python ruby perl hash

Is it true that in PHP, when we insert elements into a new hash table using sorted numbers as the keys, then the resulting hash will also be ordered?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.