amiyasahu / q2a-social-share

:busts_in_silhouette: Question2Answer plugin for sharing questions and blog posts in social media
GNU General Public License v2.0
18 stars 13 forks source link

update is_first and is_last functions #4

Closed amiyasahu closed 9 years ago

amiyasahu commented 10 years ago

https://github.com/amiyasahu/q2a-social-share/blob/master/qa-social-share-utils.php#L173

references - http://stackoverflow.com/questions/1028668/get-first-key-in-a-possibly-associative-array http://stackoverflow.com/questions/1921421/get-the-first-element-of-an-array http://stackoverflow.com/questions/6251331/get-key-of-the-last-element-in-an-array http://stackoverflow.com/questions/2260912/checking-if-a-key-is-the-last-element-in-an-array