I have four arrays: $text[], $ytext[], $titles[], $ytitles[]
What I want to do is implode the arrays, text and titles, by " " to store them as a complete string. But I want to arrange them based on their position (which is a y coordinate integer).
For example :
$text[] =
{1 => hello
2=> again
3 => more text
}
$ytext[] =
{1 => 5
2=> 10
3 => 14
}
$titles[] =
{1=> title
2=> title2
}
$ytitles[] =
{1=> 2
2=> 11
}
SO this would look like: title hello again title2 more text