get_permalink returning first letter

The value of index ‘link’ of the array $plane_details is a string, and thus $value[0] gives you the first letter only.

Just replace $value[0] by $value and all should be fine.

Why are you referencing the value this way, anyway?