I wrote a sorting algorithm in python.
It returns a Python Dictionary object.
How do i get the dictionary from Python into my PHP code as an associative arr ?
Will I have to write the whole sorting algorithm again in PHP?
What you can do is save the Dictionary Object as json or xml in Python, then use json_decode or simple_xml in PHP to load it as array or object
You need no sorting algorithm ... PHP has a lot of them
Converting a Python Dictionary into Associative Array for PHP