Skip to content

Instantly share code, notes, and snippets.

@lightningspirit
Created May 5, 2014 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lightningspirit/f4e73ade81f28a0a8aa8 to your computer and use it in GitHub Desktop.
Save lightningspirit/f4e73ade81f28a0a8aa8 to your computer and use it in GitHub Desktop.
Use array implde function to mimic url encoding and input
<?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