Created
May 5, 2014 22:50
-
-
Save lightningspirit/f4e73ade81f28a0a8aa8 to your computer and use it in GitHub Desktop.
Use array implde function to mimic url encoding and input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = url_encode( array_implode( '=', '&', $array ) ); | |
echo '<input '.array_implode( '=”', '” ', $array ).' />'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment