Created
June 6, 2015 02:03
-
-
Save ilkeryilmaz/580870050a6e864322e1 to your computer and use it in GitHub Desktop.
Php array implode
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
$title = array('data', 'data', 'data'); | |
$columns = implode(", ",array_keys($title)); | |
$escaped_values = array_values($title); | |
$values = implode(", ", $escaped_values); | |
echo $values; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment