Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I hope you can help me;
How to convert a urlcode in array in php?
example:
$Urlcode = 'name=luiz&country=Brazil&city=patrociniomg';
I need to transform this $Urlcode in array, in PHP, anyone know?
Thanks to everyone now
parse_str
http://www.php.net/manual/en/function.parse-str.php
Add a comment
use parse_str(), it does exactly what you want
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.